client-certificates

Can IIS require SSL client certificates without mapping them to a windows user?

会有一股神秘感。 提交于 2019-12-01 10:43:48
I want to be able to map SSL client certificates to ASP.NET Identity users. I would like IIS to do as much of the work as possible (negotiating the client certificate and perhaps validating that it is signed by a trusted CA), but I don't want IIS to map the certificate to a Windows user. The client certificate is passed through to ASP.NET, where it is inspected and mapped to an ASP.NET Identity user, which is turned into a ClaimsPrincipal. So far, the only way I have been able to get IIS to pass the client certificate through to ASP.NET is to enable iisClientCertificateMappingAuthentication

How to specify certificate, key and root certificate with httr for certificate based authentication?

蓝咒 提交于 2019-12-01 09:17:16
I am trying to access data using httr library from server which expects certificate based authentication. I have certificate (cert.pem), key file (key.pem) and root certificate (caroot.pem) Following curl works. curl -H "userName:sriharsha@rpc.com" --cert cert.pem --key certkey.key --cacert caroot.pem https://api.somedomain.com/api/v1/timeseries/klog?limit=1 How can specify certkey.key and caroot.pem to httr GET request. I am trying with following R command but couldn't find option to specify cert key and caroot. cafile=???? r<-GET(" https://api.somedomain.com/api/v1/timeseries/klog ", query =

Issue in Self Signed Client Certificate while processing an Identity Server Client Credentials Flow

被刻印的时光 ゝ 提交于 2019-12-01 08:43:19
I created a Self Signed Certificate for my internal development purpose using MakeCert.exe Step #1 : I Created a Root CA using the following Command makecert -n "CN=Bala root signing authority" -cy authority -r -sv root.pvk root.cer Step #2 : Installed the Root CA Certificate which is created in Step #1 using the following Command certutil -user -addstore Root root.cer Step #3 : I Created a Client Certificate using the following Command makecert -pe -n "CN=Bala Client" -a sha1 -cy end ^ -sky signature ^ -ic root.cer -iv root1.pvk ^ -sv Bala.pvk Bala.cer Step #4 : I Created a .pfx file for the

Read in PKCS12/P12 Client Cert file for Android App

白昼怎懂夜的黑 提交于 2019-12-01 08:18:58
问题 I am trying to use a Client Certificate inside of my Android app so that I can insure HTTPS communication only with people who use the app or have the cert. I have the certificate in my res/raw folder. And Android Studio sees it when I start typing in "R.raw." However, when I use any of the following code, the variable comes back as having a "null" value: FileInputStream fis = null; fis = (FileInputStream) getClass().getResourceAsStream(String.valueOf(R.raw.clientcert2)); or InputStream fis =

Smart card authentication using a client certificate

筅森魡賤 提交于 2019-12-01 08:18:22
I have a third party web application and now my manager wants to add smart card authentication to some of the pages (not the whole application) and return certificate information. What I'm thinking is to add buttons to those pages, and in the onclick event, I will do the client certificate authentication (where a certificate selection window will appear followed by the "PIN" window) and return certificate object for further processing. I initially thought about a web service to do the client certificate authentication and return certificate information, which would be great because we might

Smart card authentication using a client certificate

我是研究僧i 提交于 2019-12-01 06:53:36
问题 I have a third party web application and now my manager wants to add smart card authentication to some of the pages (not the whole application) and return certificate information. What I'm thinking is to add buttons to those pages, and in the onclick event, I will do the client certificate authentication (where a certificate selection window will appear followed by the "PIN" window) and return certificate object for further processing. I initially thought about a web service to do the client

Apache CXF wsdl download via SSL/TLS

女生的网名这么多〃 提交于 2019-12-01 04:32:33
问题 I have a cxf service running at https://localhost:8443/services/MyService?wsdl with client certificate required. The WSDL is not important here. I am able to invoke the service when I remove the client certificate or https requirement. The service and client classes were generated with cxf wsdl2java utility. Here is MyService.class: package com.mycompany; import java.net.URL; import java.util.logging.Level; import java.util.logging.Logger; import javax.xml.namespace.QName; import javax.xml.ws

How do I provide a specific TrustStore while using the default KeyStore in Java (JSSE)

只谈情不闲聊 提交于 2019-11-30 21:16:14
Overview JSSE allows users to provide default trust stores and key stores by specifying javax.net.ssl.* parameters. I would like to provide a non-default TrustManager for my application, while allowing the user to specify the KeyManager as usual, but there doesn't seem to be any way to achieve this. Details http://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/JSSERefGuide.html#CustomizingStores Suppose on unix machines I want to allow the user to use a pkcs12 key store for authentication, while on OS X I want allow the user to use the system keychain. On OS X the application

What is the impact of the `PersistKeySet`-StorageFlag when importing a Certificate in C#

别来无恙 提交于 2019-11-30 20:08:40
In my application, a Certificate for Client-Authentication is programatically added to the MY -Store using the following code: //certData is a byte[] //password is a SecureString X509Certificate2 certificate = new X509Certificate2(certData, password, X509KeyStorageFlags.Exportable); X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser); try { store.Open(OpenFlags.ReadWrite); store.Add(certificate); } finally { store.Close(); } With this code, the certificate was correctly imported into the MY -Store (thumbprint and certification chain also correct) on all machines I tested.

Request with automatic or user selection of appropriate client certificate

自作多情 提交于 2019-11-30 15:09:55
问题 I'm developing an hybrid cordova app which might connect to different servers. Some of them do require a client certificate. On an Android mobile the corresponding root cert + client certificate is installed. On Chrome browser I get the following dialog to choose the corresponding client certificate for the Web connection. With the cordova plugin cordova-client-cert-authentication the same dialog pops up for Http(s) requests within the WebView. My question is how to achieve a automatic