3
I’m trying to implement Apache authentication through PKI with digital certificates stored in token/smart card.
I am using XAMPP 5.6.8.0-VC11 on a Windows 7 computer.
Following what I found by searching the Internet, I have decrypted the following file settings httpd-ssl.conf
in the Apache settings:
SSLVerifyClient require
SSLVerifyDepth 10
From there, when accessing https://localhost, the browser (IE 11, Chrome 43 and FF 38) display the digital certificate selection screen (use an e-CPF in the ICP-Brazil standard, stored in token) and request the password.
After entering the password and pressing ENTER, the behavior in the browsers is as follows:
In IE, I am presented a page with the message :
This page cannot be displayed.
In FF, it keeps loading the page indefinitely.
In Chrome, the message appears:
Certificate based authentication failed ERR_BAD_SL_CLIENT_AUTH_CERT
and clicking on "details" appears:
This server requires an authentication certificate and did not accept that was sent by the browser. Your certificate may have expired or the server does not trust its sender. Try again with a different certificate, if you have one, or you will need to get one valid certificate from another place.
I have tested several additional settings I found on the internet, but nothing works. I have also changed the Windows Internet Options for SSL and TSL, also if successful.
I would like to find out how to implement digital certificate authentication for a more secure login system that is under development.
Has anyone been there or knows how to solve the problem?
Does your Apache server recognize the ICP-Brazil root certificate? At first you need to download the ICP-Brazil root(s) certificate(s) and configure your server to specifically accept certificates issued by that particular CA (otherwise, such as webserver would you know which certificates are valid and which are not? ). I have no experience with this type of configuration, but that page (in English) seems to give some examples.
– mgibsonbr