Welcome! Log In Create A New Profile

Advanced

nginx + ssl client certificate authentication

Posted by bangbang 
nginx + ssl client certificate authentication
June 05, 2011 02:42PM
Hello all fellow members :)

I've just switched from Apache to Nginx on my debian box and i setup nginx with ssl support and all seems to work fine.
I changed listening port to 555 also to handle the ssl and everything.

Now i can't get working a client certificate authentication.

i followed this tutorial on how to create the certs/key and added lines to my conf file.

http://blog.nategood.com/client-side-certificate-authentication-in-ngi


here is what i have now in the conf file:

http://pastebin.com/GUyALTXt

I have of course downloaded client.crt to my laptop and installed it but without luck :/
Everytime i get a 400 No required SSL certificate was sent
and i can't access my box.

Note:
i'm using my box without a domain name. i access it directly with the ip (don't know if really matter just saying)
I only use Nginx as webserver. Ive not Apache installed of course

Of course i want only to allow connections from clients that have the right client certificate imported on their system and deny all others to a custom page.

Any ideas/suggestions on how can i solve this??

Thanks in adavnce to everyone!



Edited 2 time(s). Last edit at 06/05/2011 02:45PM by bangbang.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready