client-certificates

Client certificates with AWS API Gateway

时光毁灭记忆、已成空白 提交于 2019-11-30 13:56:56
I am trying to implement mutual authentication for the communication between aws api gateway and my server. I want to use the client side certificates that amazon offers for authentication. I know that my server is configured correctly because previously I was using a lambda function and mutual authentication was working. I have exported the (.PEM) certificate and added it into a truststore. I have configured my Jetty server to use that truststore for authentication. I have set client-auth to :need. I know my server is set up correctly because it was working with with my self-implemented

Request with automatic or user selection of appropriate client certificate

雨燕双飞 提交于 2019-11-30 13:43:46
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 certificate selection on Http(s) requests on the native Android platform without explicitly declaring the

Using CLIENT-CERT for Tomcat without specifying a username

牧云@^-^@ 提交于 2019-11-30 12:47:20
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 setup a tomcat user account for each certificate which is to access your system? We need to be able to

Getting “The remote certificate is invalid according to the validation procedure” when SMPT server has a valid certificate

社会主义新天地 提交于 2019-11-30 11:24:45
This seems a common error but while I've found a work-around (see below) I can't pin down the reason I'm getting it in the first place. I am writing SMTP functionality into our application and I'm attempting to add SSL functionality to the working SMTP we already have. I am testing using our company's MS Exchange server and specifically the webmail option enabled on that. I can send emails internally through my code by not authenticating my connection and sending anonymously, however those emails won't relay to external email addresses due to our companies policy. Besides which I am

Restricting access to server to iPhone app

风流意气都作罢 提交于 2019-11-30 10:31:25
I'm building a client/server iPhone game, where I would like to keep third-party clients from accessing the server. This is for two reasons: first, my revenue model is to sell the client and give away the service, and second I want to avoid the proliferation of clients that facilitate cheating. I'm writing the first version of the server in rails, but I'm considering moving to erlang at some point. I'm considering two approaches: Generate a "username" (say, a GUID) and hash it (SHA256 or MD5) with a secret shipped with the app, and use the result as the "password". When the client connects

HTTP error 403.16 - client certificate trust issue

倾然丶 夕夏残阳落幕 提交于 2019-11-30 10:24:23
问题 I am trying to implement client certificate authentication on IIS 8. I have deployed my configuration on a development machine and verified it working as expected there. However after setting up on the server, whenever I navigate to the site and am prompted for the client cert, I select it and immediately get the 403.16 error. The failed requests log gives the error code 2148204809 and message "A certificate chain processed, but terminated in a root certificate which is not trusted by the

Swift iOS Client Certificate Authentication

馋奶兔 提交于 2019-11-30 09:01:37
The web service I want to consume requires a client certificate. How can I send my certificate to it? To further elaborate I don't understand how to create the SecIdentityRef . In my NSURLConnection didReceiveAuthenticationChallenge I've got this conditional after ServerTrust : else if challenge?.protectionSpace.authenticationMethod == NSURLAuthenticationMethodClientCertificate { var secIdent : SecIdentityRef = ????????? var certCred = NSURLCredential(identity: secIdent, certificates: [getClientCertificate()], persistence: NSURLCredentialPersistence.Permanent) challenge?.sender.useCredential

Solving sslv3 alert handshake failure when trying to use a client certificate

可紊 提交于 2019-11-30 08:49:16
I'm trying to connect to a service that requires a certificate for authorization. The process is that I send the service a CSR file. The service signs the CSR and sends me a certificate that I use for connection. I generated the CSR by the following command line: openssl req -new -nodes -newkey rsa:2048 -keyout cert.key -out cert.csr I took the content of the cert.csr and sent to them. They generate the client certificate and I got a PEM file back. I now try to connect using their certificate file in SSLCERT for curl() and providing the private key from cert.key as CURLOPT_SSLKEY - (which I

How to use p12 certificates in Android (client certificates)

烈酒焚心 提交于 2019-11-30 07:46:25
I'm trying to use client certificates in android. I got a .p12 file that i want to use to authenticate towards the server. I am using portecle to convert the .p12 file to a .bks file but i don't seem to get it to work. Here's the code: package com.pa1406.SECURE; import java.io.InputStream; import java.security.KeyStore; import javax.net.ssl.KeyManagerFactory; import javax.net.ssl.TrustManagerFactory; import org.apache.http.conn.ClientConnectionManager; import org.apache.http.conn.scheme.PlainSocketFactory; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.scheme

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

微笑、不失礼 提交于 2019-11-30 03:51:55
问题 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