client-certificates

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

天涯浪子 提交于 2019-12-04 10:31:19
问题 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

Using a Android WebView to connect to secure server with Client Certificate

感情迁移 提交于 2019-12-04 10:05:38
Can a WebView or more specifically, PhoneGaps CordovaWebView, use client certificates to authenticate to a server? I understand the native browser can use client certs but I am trying to get a PhoneGap Android app to talk to a server that requires a client cert to work and can not see how. I have tried various methods I have seen on google, but they are not working on Android version 4.0 or greater. Any suggestions would be greatly appriciated. It is not possible. The code that is needed to answer back a challenge for a client certificate is not available in the sdk. If you look at the source

How to send client certificate using HttpWebRequest and IISExpress for debugging

谁说胖子不能爱 提交于 2019-12-04 10:04:41
I have some code for pulling a client certificate from the page request. This is the code in "MyPage.aspx". string someparam = this.Request.Params["someparam"]; if (!String.IsNullOrWhiteSpace(someparam) && this.Page.Request.ClientCertificate.IsPresent) { try { X509Certificate2 x509Cert2 = new X509Certificate2(this.Page.Request.ClientCertificate.Certificate); // // Code for verifying the x509Cert2 // } catch (Exception) { } } Now I want to test the code in Visual Studio in my local environment. For this I installed IISExpress to get trusted communication over https. So far so good. The problem

Connecting to a Web Service using Client Certificate authentication

青春壹個敷衍的年華 提交于 2019-12-04 09:59:38
I've been give a .p12 file to connect to a web service over SSL using client certificate authentication. I have this successfully working in PHP, using cURL. These are the options I'm using when perform the request: $headers = array( 'Method: POST', 'Connection: Keep-Alive', 'User-Agent: PHP-SOAP-CURL', 'Content-Type: text/xml; charset=utf-8', 'SOAPAction: "'.$action.'"', ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $location); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $request); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT

Client Certificates with LibCUrl

做~自己de王妃 提交于 2019-12-04 09:06:26
I am using libCurl to download a file from a remote server. That remote server requires client certificates. Here are the options that i have tried: curl_easy_setopt(pCurl, CURLOPT_URL, url); curl_easy_setopt(pCurl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_easy_setopt(pCurl, CURLOPT_SSL_VERIFYHOST, 2); curl_easy_setopt(pCurl, CURLOPT_VERBOSE, 1); curl_easy_setopt(pCurl, CURLOPT_CERTINFO, 1L); curl_easy_setopt(pCurl, CURLOPT_SSL_VERIFYPEER, 1); //the following two lines specify the path to my valid client certificate curl_easy_setopt(pCurl, CURLOPT_CAINFO, "c:\\Delta.p12"); curl_easy_setopt(pCurl,

NSS/JSS: load user imported cert along with PKCS#11 smartcard in Java

这一生的挚爱 提交于 2019-12-04 08:32:40
Scenario I am working on a Java Swing project, where I must develop a feature of listing certificates for users to choose for authentication via SSL against the server. These certificates must contain the user imported ones in Firefox, and if a smartcard is inserted, those in the card will be listed, too. The environment is Linux/MacOS. In Windows the Internet Explorer handles it all, and what we would like to achieve is much like what happens in Windows: list all certificates, along with those in card, for users to choose. Situation When using NSS (Network Security Service) of Mozilla in

Programmatically or declaratively demand client certificate for a single asp.net page in IIS

回眸只為那壹抹淺笑 提交于 2019-12-04 08:04:58
The title pretty much says it, I've rolled out an IIS 7 website with an SSL certificate and now willing to set "SSL Settings/Client certificates/Accept" for a single page but programmatically or declaratively . I've found a way of doing this using the IIS manager but due to some infrastructure limitations we need to be able to configure it without having access to IIS Manager. Any pointers shall be greatly appreciated! Many thanks Perhaps this can help? http://msdn.microsoft.com/en-us/library/aa347649%28VS.90%29.aspx It's the managed code sdk for IIS7. It can do most things to IIS, surely what

Google Chrome Client Certificate Popup

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 23:23:28
I'm implementing a mutual authentication for my client in order to solve not having to continually whitelist some of the agencies with a dynamic ip. The process works fine in all browsers that I've tried in the Windows environment (Windows 7). The problem is that there is a popup for every time that the user goes to the site. On most browsers, this is a one time occurrence, when you first go to the site for the day. On Google Chrome, however, the popup occurs on what appears to be every POST/GET request. I found how to disable the popup for IE and FF with this link: http://docs.threerings.org

How to add registry certificate to HttpWebRequest?

半腔热情 提交于 2019-12-03 21:35:51
My apologies in advance if this is a duplicate question. I am new to the 'lingo' of HttpWebRequest and my google searching turned up fruitless. Some time ago I wrote a login controller that utilizes HttpWebRequest . It works fine when I run it at home. I tried the same login controller from behind my company's firewall and it is expecting a Client Authentication certificate to get through. I read online that the certificate lives in my desktop's system registry. Sure enough, I can open IE and internet options->content->certificates I can see in the dialog window the client certificate that IE

How can I configure Simple Framework to require SSL client authentication?

两盒软妹~` 提交于 2019-12-03 17:16:05
I am writing an HTTP server using the Simple Framework and would like to require clients to present a valid certificate signed by my certificate authority in order to establish a connection. I have the following bare-bones server written. How can I modify this code to require client certificate authentication for all SSL connections? public static void main(String[] args) throws Exception { Container container = createContainer(); Server server = new ContainerServer(container); Connection connection = new SocketConnection(server); SocketAddress address = new InetSocketAddress(8443);