client-certificates

Java Rest call with different user certs

主宰稳场 提交于 2019-12-08 08:57:29
问题 I have set of user certificates, I would like to authenticate users using respective user cert. I configured the server to enable user authentication. It works fine from browser. In case of multiple user certs, it prompts me to select the cert need to be used. My question is, how can I do that from java?? I am using RestTemplate to communicate to the server. In case of single user certs I can add that to the java key store and make use of it. How can I use a particular user cert for a

Am I required to setup a usermapping for a clientcertificate in order to have client certificate authentication to work as expected (in IIS)?

北战南征 提交于 2019-12-08 03:24:28
问题 Linked to my question about client certificate authentication done the right way I was wondering whether I have to take the step to link a certificate to a user (active directory or local user) in order to have clientcertificate authentication to work as expected? And is it necessary to disable all other authentication schemes (anonymous, windows) for clientcerticate authentication to happen? 回答1: See this question on the IIS forum: This is what I would like to achieve: A SSL-certificate for

Can't connect to SSL web service with WS-Security using PHP SOAP extension - certificate, complex WSDL

烂漫一生 提交于 2019-12-07 19:14:12
问题 Using the PHP5 SOAP extension I have been unable to connect to a web service having an https endpoint, with client certificate and using WS-Security, although I can connect using soapUI with the exact same wsdl and client certificate, and obtain the normal response to the request. There is no HTTP authentication and no proxy is involved. The message I get is 'Could not connect to host'. Have been able to verify that I am NOT hitting the host server. (Earlier I wrongly said that I was hitting

Storing a .p12 certificate in keychain to use later

放肆的年华 提交于 2019-12-07 12:08:33
问题 I am trying to follow the apple docs for dealing with client p12 certificates here: https://developer.apple.com/library/ios/documentation/Security/Conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html#//apple_ref/doc/uid/TP40001358-CH208-SW13 I have successfully loaded a .p12 cert from the file system: - (SecIdentityRef)getClientCertificate:(NSString *) certificatePath { SecIdentityRef identity = nil; NSData *PKCS12Data = [NSData dataWithContentsOfFile:certificatePath]; CFDataRef

iPhone client certificate

寵の児 提交于 2019-12-07 11:15:11
问题 I would like to verify that an app I am writing is running on an iPhone. What would be perfect is this: Apple baked an SSL client certificate into each iphone which can be authenticated by a receiving server. I this the case? I have not started researching this yet, I will update with anything I find. UPDATE: Here is some Apple documentation on certificates and keychains. So: In iPhone OS, Keychain Services checks an application’s signature before giving it access to a keychain, and lets an

How to connect with client certificate using a WebView in Cocoa?

本小妞迷上赌 提交于 2019-12-06 15:57:54
问题 I am trying to connect to a server that requires a client certificate. So the normal flow of events that happens when browsing to this server is that the web browser (both Safari and Chrome) prompts the user to select a certificate and retry the operation. So how can I accomplish this in a embedded WebView in a Cocoa project? I have so far identified that the error is raised in the didFailProvisionalLoadWithError method: - (void)webView:(WebView *)sender didFailProvisionalLoadWithError:

Java Rest call with different user certs

送分小仙女□ 提交于 2019-12-06 15:27:59
I have set of user certificates, I would like to authenticate users using respective user cert. I configured the server to enable user authentication. It works fine from browser. In case of multiple user certs, it prompts me to select the cert need to be used. My question is, how can I do that from java?? I am using RestTemplate to communicate to the server. In case of single user certs I can add that to the java key store and make use of it. How can I use a particular user cert for a particular rest call?? August Lilleaas The standard terminology to use here are "client certificates", so you

Request Client Certificate

安稳与你 提交于 2019-12-06 12:08:28
I've seen a lot of unsolved questions about this. Apparently many developers have gotten past this issue, but I haven't seen any solutions posted. I'm trying to read a smart card (X.509 CAC) for my ASP.NET MVC 5 web app. When I try to pull the certificate information like this: var request = HttpContext.Request; var cert = request.ClientCertificate; The cert has empty values. The problem appears to be I am not presenting the dialog to request user certificate info like I see on other websites. How do I expose this dialog? I am running it with SSL enabled. My applicationhost.config has this in

Client certs without using the keystore

风流意气都作罢 提交于 2019-12-06 06:31:31
I'm trying to figure out if there is any way to have a .NET client use a client certificate without involving the Windows keystore in any way. I have a code snippet like this: test1.Service s = new test1.Service(); X509Certificate c = X509Certificate.CreateFromCertFile(@"C:\test.pem"); s.ClientCertificates.Add(c); int result = s.TestMethod(); However, this only works if I also have the certificate referenced in "test.pem" installed in my certificate store. I assume this is because the key is necessary for the negotiation. If I don't have the cert/key in the store, the cert is not sent with the

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

感情迁移 提交于 2019-12-06 05:31:20
问题 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. 回答1: It is not possible. The code that is needed