client-certificates

Client Certificates with LibCUrl

不羁岁月 提交于 2019-12-06 04:10:32
问题 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

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

岁酱吖の 提交于 2019-12-06 03:40:20
问题 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 回答1: Perhaps this can help? http://msdn.microsoft.com/en-us

Storing a .p12 certificate in keychain to use later

穿精又带淫゛_ 提交于 2019-12-05 21:15:07
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 inPKCS12Data = (__bridge CFDataRef)PKCS12Data; CFStringRef password = CFSTR("password"); const void *keys

javax.net.ssl.SSLException: SSLSocketFactory is null

六眼飞鱼酱① 提交于 2019-12-05 18:21:36
I have a problem with the following code... System.setProperty("javax.net.ssl.keyStoreType", "pkcs12"); System.setProperty("javax.net.ssl.trustStoreType", "jks"); System.setProperty("javax.net.ssl.keyStore","C:\\ClientKeyStore\\ClientKeyStore.p12"); System.setProperty("javax.net.ssl.trustStore","C:\\ClientKeyStore\\ClientKeyStore.keystore"); System.setProperty("javax.net.debug", "ssl"); System.setProperty("javax.net.ssl.keyStorePassword", "keystorepass"); System.setProperty("javax.net.ssl.trustStorePassword", "truststorepass"); SSLSocketFactory sslsocketfactory = (SSLSocketFactory)

iPhone client certificate

空扰寡人 提交于 2019-12-05 16:43:32
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 application have access only to its own keychain items (with the possible exception of items for which

How to add registry certificate to HttpWebRequest?

隐身守侯 提交于 2019-12-05 06:20:12
问题 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

Java ftps connection, TrustManager explaination (using filezilla server)

↘锁芯ラ 提交于 2019-12-04 20:55:44
I have written a program (obviously COPIED from the net, and modified it little according to my needs!) for file download/upload using apache ftp api and by creating a local server using Filezilla server. Everything is working FINE . The problem is I didn't get the part where we have to create a trust manager. Code: FTPSClient ftpsClient= null; SSLContext sslContext = SSLContext.getInstance(protocol); TrustManager tm = new X509TrustManager() { public X509Certificate[] getAcceptedIssuers() { System.out.println("getAcceptedIssuers------"); return null; } @Override public void checkClientTrusted

Is there a way to use FtpWebRequest to authenticate to FTP using client certificates in C#?

隐身守侯 提交于 2019-12-04 19:29:23
I am trying upload a file to a FTP server and I need to use client certificate to authenticate and not the username and password. var fullFtpPath = String.Concat(ftpItem.FtpAddress, "/", record, ".txt"); FtpWebRequest request = (FtpWebRequest) WebRequest.Create(fullFtpPath); request.Credentials = new NetworkCredential(ftpItem.Username, ftpItem.Password); request.Method = WebRequestMethods.Ftp.UploadFile; request.UseBinary = true; request.UsePassive = ftpItem.UsePassive; request.EnableSsl = ftpItem.UseSSL; request.ContentLength = bytes.Length; using(Stream s = request.GetRequestStream()) { s

ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED in Google Chrome

半世苍凉 提交于 2019-12-04 17:42:20
问题 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

Windows 8 Phone Client Certificate HTTPS authentication

*爱你&永不变心* 提交于 2019-12-04 10:40:23
问题 I am trying to access a secure HTTPS server using client certificate from a Windows 8 Phone app I am developing. This does not work at all which has has made me try to access the HTTPS server from the standard web browser where it does not work either. I do not know if Internet Explorer can handle client certificates or not. If it does not handle them I would be very interested in some sample code for c# .NET that works on Windows 8 Phone and that is able to provide a client certificate to