I need to implement secure access to the corporate site using SSL certificates. After long time of searching I've came to conclusion that there are 2 ways to do that:
creating own self-signed root CA certificate, then creating key and certificate for a server (we use nginx) and so after that creating client certificates, signed with the self-signed root CA certificate.
receiving a certificate and a key from Certificate Center (in owr case it was StartSSL).
in 1. there is a big problem - a client browser didn't accept this certificate and pop up a message.
in 2. there is another problem - browsers accept the certificate without problem but there is no way to sign a client certificate with it.
And so my question - how can I implement secure access to the site on nginx using certificates and how can I issue client certificates to access the site in right way?