client-certificates

Retrieve client cert in Servlet when using mutual authentication?

醉酒当歌 提交于 2020-01-24 11:27:46
问题 I am building a web application using Java and Tomcat 7.0. I have a self-signed certificate (in the future I'll get an official one) on the server side, and I've added a client's root certificate to its truststore. I've already set a required two-way authentication for https protocol on port 3443 with the following lines on the server.xml file: <Connector port="3443" scheme="https" secure="true" SSLEnabled="true" truststoreFile="server.keystore" truststorePass="keystore password" keystoreFile

Client certs without using the keystore

梦想的初衷 提交于 2020-01-23 13:15:47
问题 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

Client certs without using the keystore

依然范特西╮ 提交于 2020-01-23 13:11:52
问题 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

Request Client Certificate

女生的网名这么多〃 提交于 2020-01-23 12:09:35
问题 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

Client Certificate does not seem to get sent

人走茶凉 提交于 2020-01-16 00:38:40
问题 I'm integrating with a customer for which I'm implementing 2 way ssl, meaning I'm attaching a client certificate to outgoing HTTP requests. My calling client app is written in C# and is hosted in IIS, while the customer is not using IIS, I think they are using something that's called Layer 7. I add the client certificate to the request in code: request.ClientCertificates.Add(clientCertificate); Now if I'm sending the HTTP request to the customer with the client certificate, the request fails,

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

时间秒杀一切 提交于 2020-01-13 06:31:08
问题 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 =

How to make a request with client certificate in Rust

蓝咒 提交于 2020-01-11 11:36:11
问题 I have a project with microservices deployed in Bluemix with Docker containers. All microservices are written in Java and the communication is using JKS files. I also developed a microservice in Node.js with Express.js. To consume the other microservices, I used the Request module with option.agentOptions feature and a pfx file , like this: var options = { uri: config.get("https://www.example.com/ms/service"), method: 'POST', body: data, json: true, headers: { 'Content-Type': 'application

Using CLIENT-CERT for Tomcat without specifying a username

≡放荡痞女 提交于 2020-01-10 18:31:53
问题 I am trying to make a Tomcat web application use client certificate authentication for incoming connections. Everything works fine when using clientAuth=true in server.xml, however due to other applications running on the same server, we cannot use this in the production environment. Is there a way to form a web.xml document such that it forces client certificate usage for the application in the same way as clientAuth=true? It seems like using the CLIENT-CERT setting also requires you to

Using CLIENT-CERT for Tomcat without specifying a username

我的未来我决定 提交于 2020-01-10 18:27:46
问题 I am trying to make a Tomcat web application use client certificate authentication for incoming connections. Everything works fine when using clientAuth=true in server.xml, however due to other applications running on the same server, we cannot use this in the production environment. Is there a way to form a web.xml document such that it forces client certificate usage for the application in the same way as clientAuth=true? It seems like using the CLIENT-CERT setting also requires you to

Using CLIENT-CERT for Tomcat without specifying a username

蓝咒 提交于 2020-01-10 18:27:29
问题 I am trying to make a Tomcat web application use client certificate authentication for incoming connections. Everything works fine when using clientAuth=true in server.xml, however due to other applications running on the same server, we cannot use this in the production environment. Is there a way to form a web.xml document such that it forces client certificate usage for the application in the same way as clientAuth=true? It seems like using the CLIENT-CERT setting also requires you to