client-certificates

How to trigger SSL rehandshake on a web browser?

不想你离开。 提交于 2019-12-03 17:13:47
I have a web server that is configured to request a client certificate for SSL. If the client has an acceptable certificate they will see the actual content, but in case do not, I fall back to SSL without client authentication and show an error page that informs them to connect their security token and try again. The problem is, even when they connect their token, the browser will not renegotiate a new SSL session because it thinks that the current session is fine. So I need a way to invalidate the current SSL session. I tried to do it on the server, which is a Tomcat 6: response.setHeader(

Authenticating a self-signed certificate for LDAPS connection

[亡魂溺海] 提交于 2019-12-03 13:06:17
问题 I want to make a secure ldap connection(ldaps) from a Linux(Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux) client to a Windows 2012 server, to change user passwords in active directory, through php. For that, I've created a self-signed certificate(using Windows Server Manager) on the server, but when I try to connect, I get the following error(by turning debugging option on: ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7); ): ldap_create ldap_url_parse_ext(ldaps://xxx.xxx.xxx.xxx

HTTPS test server that checks client certificates

故事扮演 提交于 2019-12-03 12:15:05
问题 I have written a web service client that uses SSL client certificates to authenticate to the remote server. But since the actual web service is not yet available to me, I'm looking for a public test server that accepts a client certificate for authentication, so that I can test the SSL part of my client for correct implementation and configuration. I have tried https://requestb.in but it replies with HTTP status 403 (Forbidden) when I use a client certificate. And https://httpbin.org/ accepts

ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED in Google Chrome

假如想象 提交于 2019-12-03 11:17:58
I've got a web site that uses SSL Client certificate authorization. All client certificates are generated using OpenSSL and are self-signed. Everything worked with all web-browsers, but the recommended one was Google Chrome, because it uses same SSL warehouse as IE, so certificate installation was pretty easy (click-click-password-done!). After last update of Google "Chrome 29.0.1547.57 m" noone can access my web-server, even me. Google chrome error only! IE and FF working fine. Error is: ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED. Same in server error log. Do you have any suggestions? The problem

Android WebView handle onReceivedClientCertRequest

浪子不回头ぞ 提交于 2019-12-03 09:32:42
问题 I'm developing an Android app using Client Certificate Authentication within WebView. The certificate (cert.pfx) and password are embedded in the application. When executing Client Certificate Authentication request with ajax call in the WebView, the following function getting called : @Override public void onReceivedClientCertRequest(WebView view, final ClientCertRequest request) {} As I understend I need to call : request.proceed(PrivateKey privateKey, X509Certificate[] chain) Any idea how

https client certificate logout/relogin

♀尐吖头ヾ 提交于 2019-12-03 08:52:12
问题 I have a web site using ssl certificate authentication. How to force the web browser from the server to ask again the certificate to be used? It would be useable for logout, but the use case here is switching user identity. I remember something about directing the user to a page which have ssl settings incompatible with the current authentication certificate, but could not find the right settings. My setup uses apache mod-ssl, but an IIS solution would also be welcome. Update: I am

Disable SSL client certificate on *some* WebAPI controllers?

百般思念 提交于 2019-12-03 08:27:24
问题 Edit for future readers : Unfortunately, the bounty awarded answer doesn't work; nothing I can do about that now. But read my own answer below (through testing) - confirmed to work with minimal code changes We have an Azure Cloud Service (WebRole) that's entirely in ASP.NET WebAPI 2.2 (no MVC, front end is Angular). Some of our controllers/REST endpoints talk to a 3rd party cloud service over SSL (client cert auth/mutual auth) and the rest of the controllers/endpoints talk to the HTML5

X509Certificate2.Verify() returns false always

跟風遠走 提交于 2019-12-03 07:28:55
Facing a really strange issue X509Certificate2.Verify() returning false for a valid certificate. Maybe some has already faced this strange scenario before and can shine some light on it. I am using openssl to generate client certificates for testing purposes. I create a Root CA and generate a client certificate based on that Root CA and add the Root CA to its chain. I load the Root CA and the Client Cert to the local certificate store and it seems ok there but when I load it from my NUnit code to test X509Certificate2.Verify() always returns false. Here is the code to load the Cert from the

Forcing ASP.NET WebAPI client to send a client certificate even when no CA match

余生颓废 提交于 2019-12-03 06:22:57
I have a specific application that requires the use of client certificates for mutual authentication of HTTPS requests. The server has a flexible certificate validation policy that allows it to accept self-signed client certificates that are not present in the server's certificate store. This is known to work just fine using curl as a client. What I've determined via testing and packet sniffing is that Microsoft's ASP.NET HttpClient tries to be overly smart during the SSL handshake. This particular client will only use a client certificate (from the WebRequestHandler.ClientCertificates

Clear ssl client certificate state from javascript in firefox 33.0.2 (removed Proprietary window.crypto)

蓝咒 提交于 2019-12-03 06:03:10
I'm looking for a way to clear the SSL client certificate cache in Firefox as a kind of "log out" functionality so that the server does not recognize me anymore via the client certificate the next time I connect to it. The solution from clear-ssl-client-certificate-state-from-javascript if (window.crypto) window.crypto.logout(); does not work anymore in the current version of Firefox. With firefox 33.0.2 the Proprietary window.crypto properties/functions are removed How can I do this in the current Firefox version? You can enable window.crypto by setting dom.webcrypto.enabled = true in about