client-certificates

JKS with multiple PrivateKeyEntries

萝らか妹 提交于 2019-12-24 03:49:11
问题 I'm running a basic web app within Tomcat and Java 6. In my app I have to connect to two different remote systems and each requires a unique client certificate. Over a year ago, someone on the team was able to import both PFX files into 1 JKS file, and we could successfully communicate to the remote systems. Unfortunately, the team-member that created this JKS file isn't around anymore and both of the certificates have expired. When I tried to re-create the combined JKS file, only 1

WCF Service stop responding unexpectedly with error “client authentication scheme 'Anonymous'.The remote server returned an error: (403) Forbidden.”

五迷三道 提交于 2019-12-24 01:25:45
问题 we developed a WCF service ( running on windows server 2012) and client API which are connected each other with client certificate authentication. They were running cool up to we made a stress test on system. We try to load system with giant data then the system responds so slowly. So we interrupt the process and try to clear DB. The clearing and reindexing DB took more than 6 hours. After that the WCF service stoped responding! But we did not change any code block! Therefore, I think that

Certificate Installation Access Denied Error

大憨熊 提交于 2019-12-23 18:55:02
问题 I am trying to add a certificate inside localMachine Root. Below is the code for what I tried but this is not allowing me to add into Local Machine, while coming to add it say's access denied. How to allow to install inside Local Machine? X509Certificate2 cert = new X509Certificate2(@"D:\MyCertificate.pfx", "Temp@1234", X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet); // save certificate and private key X509Store storeMy = new X509Store(StoreName.Root, StoreLocation

https client get with cpp-netlib using a client certificate and password

天大地大妈咪最大 提交于 2019-12-23 18:02:36
问题 I am trying to use cppnetlib, or even the boost asio libraries to connect to do a simple url get and pull the resulting page down. I have gotten it to work with http, and even https usign cppnetlib but I need to supply a client certitifcate that takes a password.. Unforntuntley I am required to use the older v0.10 cppnetlib. Is this possible to do. I think the answer is to create my own _io_service and custome configure it for the https request with cert and password and then supply that to

Enabling SSL Client Certificate Required for specific Controller or Action in Asp.Net MVC

我的未来我决定 提交于 2019-12-23 09:59:56
问题 Is there any MVC specific way to require an SSL Client Certificate for a specific Action or Controller, i.e very much the way RequireHttps or Authorize works, but for ClientCerts? I know about the trick where you create an empty folder in the site, a Controller with the same name as the folder and then set up a rule in web.config, but I don't want to do it this way, I am looking for an MVC solution if there is one. (Example of the web.config trick:) <location path="/ClientCert"> <system

Azure API Management- secure API through Client Certificate

时光怂恿深爱的人放手 提交于 2019-12-23 04:29:17
问题 I am testing authenticate against Client Certificate functionality with out of the box Echo API Get request, I have added a inbound rule to check the request has certificate I am using self signed certificate, I have updated it under CA and client certificates <inbound> <choose> <when condition="@(context.Request.Certificate == null)"> <return-response> <set-status code="403" reason="Invalid client certificate"/> </return-response> </when> </choose> <base /> </inbound> In my client

WCF service self hosting with https

断了今生、忘了曾经 提交于 2019-12-23 03:33:13
问题 Currenlty there is a Wcf service hosted as windows service in one of our client side machine, actually currently this is working with normal http call. As we need to use https instead of http, for that we modified app.config but after starting the service the https url not working.Then we tried URL reservation by using netsh http add urlacl url=https://+:18732/Peripheral/ user=Everyone .Then we restared the service again it's not able to access the https url. we are getting the error in the

WCF Client Certificate AND UserName Credentials forbidden

纵然是瞬间 提交于 2019-12-23 00:51:23
问题 I'm having issues getting a WCF client to connect to a server that requires a client certificate and also a username / password. I have verified that using JUST the client certificate works using this: var binding = new WSHttpBinding(SecurityMode.Transport); binding.Security.Transport = new HttpTransportSecurity(); binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate; var ea = new EndpointAddress(EndpointUrl); using (var p = new ServiceReference1.AAAClient

javax.net.ssl.SSLException: SSLSocketFactory is null

巧了我就是萌 提交于 2019-12-22 10:07:29
问题 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

Java ftps connection, TrustManager explaination (using filezilla server)

为君一笑 提交于 2019-12-22 01:03:03
问题 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() {