Questions tagged [mutual-authentication]

Authentication is the process of verifying an asserted identity. Mutual authentication protocols provide for verification of the identities asserted by both sides of a network connection, causing the connection to fail if either side fails the authentication test.

Authentication is the process of verifying an asserted identity. In network terms, the party requesting a connection and the party granting the connection can potentially assert identities. The connection is said to be mutually authenticated when a) the identities of both sides are validated; b) the connection fails if either validation fails.

Single, or one-way authentication
A common example is a connection from a web browser to a banking web site. The user must have assurance that the web site is authentic before entering ID and password credentials. The protocol compares the URL in the browser to the Common Name or Subject Alternative name in the bank's X.509 certificate. This assures the user that the bank's web site is authentic. However, the user typically is not required to use an X.509 certificate to sign on. Instead, they enter their credentials over the encrypted connection that was established during the HTTPS session setup.

Mutual authentication
A common example of mutual authentication is an employer's VPN that authenticates both the employer and the employee using X.509 certificates. In this example, the employer's VPN server presents its certificate details during the initial handshake so the client can authenticate them. Once this is complete, the client presents its certificate details to the server for verification. When both sides have - mutually - authenticated each other, the connection is complete.

301 questions
3
votes
1 answer

PKI not choosable on Android-Phone

I try to login using PKI. I use this tutorial: http://release-manager.com/rest/images/12702 On firefox this works well. On Android-Smartphone this does not work (I tried several phones Android 6-11).EDIT: Fortunately Android 7.1.1 seems to…
Grim
  • 1,938
  • 10
  • 56
  • 123
3
votes
0 answers

How to add a self-signed client certificate to haproxy for mutual-tls?

As I've confirmed in this SO security answer I know we can have a self signed client certificate. I tried adding the client cert into ca.pem as in bind 0.0.0.0:443 ssl crt /etc/ssl/private/asdf.hdavid.io.pem verify optional ca-file…
David Hofmann
  • 5,683
  • 12
  • 50
  • 78
3
votes
1 answer

Mutual Authentication TLS

What is the use of mutual authentication in TLS without restricting the client cert? Here is my understanding about client/mutual auth using TLS. The idea is that both the server the client authenticate/verifies each other certs so, 1- The client…
3
votes
2 answers

Mutual TLS authentication on Google Cloud Platform

Is there any way to send and primarily receive Mutual TLS authenticated requests with custom certificate in Google Cloud Platform? I would need to receive and authorize requests from a simple custom IoT device with a Mutual TLS client certificate on…
3
votes
2 answers

Does anyone have a simple example of implementing x509 mutual authentication in Spring Cloud Gateway/Spring WebFlux?

I am trying to implement mutual authentication (authentication with x509 client certificates) in Spring Cloud Gateway, but throughout my research, I haven't been able to figure out where to start. From what I can see, authentication is not handled…
3
votes
1 answer

Extract Common Name from incoming https request in golang

My api is behind a gateway and the gateway terminates the ssl handshake from client and initiate a separate handshake with my api. No client should call my api directly. My requirement is that I have to extract the Common Name from incoming https…
Ash
  • 73
  • 1
  • 6
3
votes
1 answer

Java HTTPS client fails SSL handshake while curl succeeds

Apologies up front, I'm still pretty new to coding for SSL. I've been searching for answers for the past few days, and while I've found a lot of suggestions nothing has worked so far. What I have is a server implemented on top of Dropwizard that…
Zik
  • 730
  • 6
  • 21
3
votes
2 answers

GKE gRPC Ingress Health Check with mTLS

I am trying to implement a gRPC service on GKE (v1.11.2-gke.18) with mutual TLS auth. When not enforcing client auth, the HTTP2 health check that GKE automatically creates responds, and everything connects issue. When I turn on mutual auth, the…
3
votes
0 answers

Spring boot - basic auth and X.509 certificate authentication

Can basic auth be used in conjunction with X.509 certificate mutual authentication in a spring boot 2 app? In my WebSecurityConfig I have this: protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() …
Hurricane
  • 1,454
  • 1
  • 13
  • 31
3
votes
3 answers

Restrict TLS mutual authentication to specific TLS certificates

There is a PKI with a single CA issuing all the x509 certificates in my network. So on my network all the servers and clients possess a certificate from my CA stored in their corresponding keystore together with the private key. Each server and…
3
votes
2 answers

Got "Unrecognized Windows Sockets error: 0: recv failed" while posting message

I'm trying to post HTTP POST via HttpClient to a server with client authentication enabled. Here is my code public class Send2Remote { private static String sslMode = null; private static String clientKeyStore = null; private static String…
user6309529
  • 153
  • 1
  • 3
  • 16
3
votes
1 answer

How to do mutual tls authentication in C#

I have my desktop application. I would like to send post request to server URL using mutual authentication in C#. I have written following code: System::Net::ServicePointManager::SecurityProtocol = SecurityProtocolType::Tls12; WebRequestHandler ^…
3
votes
1 answer

Search Guard Kibana clientcert authentication

I have installed Search Guard for Elasticsearch 5 and configured authentication only through client certificate with CN as username. clientcert_auth_domain: enabled: false order: 2 http_authenticator: type:…
3
votes
3 answers

Mutual authentication when client gives you their public certificate

Usually 2 way ssl aka mutual auth includes generating a server ca key & certs, etc.Then the client generates a csr, gives it to you and you sign their csr and provide them with a client cert. However, I have encountered a case where the client…
cosbor11
  • 14,709
  • 10
  • 54
  • 69
3
votes
1 answer

Two-way (mutual) SSL with Glassfish3/4 or Tomcat 8 and self-signed certificates

I'm trying to implement two-way (mutual) SSL authentication, but I constantly get the following exception either on Glassfish3/4 and Tomcat 8 servers (the stacktrace is from Tomcat 8): 10-Feb-2016 17:13:41.579 SEVERE [http-nio2-18443-exec-2]…
Sleeper9
  • 1,707
  • 1
  • 19
  • 26