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
2 answers

Grpc Java SSL mutual authentication

I would like to know what needs to be set in the GrpcSslContext in order for Grpc Client to do SSL authentication with the server? Currently, the following codes are working for the usual 1-way SSL authentication from the server to the client. At…
Belvia
  • 129
  • 1
  • 2
  • 13
3
votes
2 answers

Failing mutual auth on Android w/ javax.net.ssl.SSLHandshakeException: Handshake failed

I am trying to get a mutual authentication request to work on android. I am testing against my own server so I have a self signed CA and client certificate. So I will have to allow for untrusted server cert. Here is what I am doing: KeyStore…
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
3
votes
1 answer

Mutual authentication always succeeds with OpenSSL

I am using openssl and zmq to write a server and a client. My client and server need mutual authentication. but after I set SSL_CTX_set_verify(ssl_ctx,SSL_VERIFY_FAIL_IF_NO_PEER_CERT,NULL) on server, the handshake always successes whether the…
601492584
  • 43
  • 6
3
votes
0 answers

paw : Mutual Authentication 2 Way SSL

Does Paw Rest Client support Mutual Authentication (2 Way SSL) ? I could not find how to define a keystore. Thanks. Florent.
3
votes
2 answers

Make HTTP request with client cert without the PFX installed on the machine?

I have a small console application that uses a client certificate to make an HttpWebRequest: X509Certificate Cert = X509Certificate.CreateFromCertFile("JohnDoe.cer"); HttpWebRequest Request =…
GrowinMan
  • 4,891
  • 12
  • 41
  • 58
3
votes
2 answers

Java Mutual authentication- Client Server

I'm writing a simple java client/server program in which just establishes a connection with the server sends it a sentence and the server sends the response for that. This is actually an example straight forward. In above scenario, am looking for…
Sreedhar GS
  • 2,694
  • 1
  • 24
  • 26
3
votes
1 answer

ActiveMQ mutual SSL authentication

I'm trying to set up ActiveMQ for mutual authentication, that the client will need a certificate in order to pass messages to the broker. I created a keystore and a truststore on the broker and exported a certificate that was copied to the client.…
ejpb
  • 173
  • 2
  • 3
  • 9
3
votes
0 answers

Mutual SSL working with soapUI but not standalone Java client

I am trying to get mutual SSL working from a Java client. My soapUI configuration works where I have specified keystore and truststore in WS-security configurations. When I do the same with a Java client with the following system…
2
votes
0 answers

Is it possible to use SIM card to mutual authentication on access to a secure web server with Android?

My intention is to use Android (browser) to mutual authenticate on a web server. For that would be nice if the Public Cert from the SIM card could be use and the signing operation from the SIM card with PIN. Android is not the priority, Symbian or…
Tomax
  • 807
  • 8
  • 13
2
votes
0 answers

Mutual Authentication in ActiveMQ Artemis cluster fails to get hostname from client IP address

I have set up an ActiveMQ Artemis cluster (version 2.27.1) to use mutual authentication. When the second node tries to connect to the first one, I get an error WARN [org.apache.activemq.artemis.core.server] AMQ222208: SSL handshake failed for…
Milind
  • 2,760
  • 1
  • 16
  • 12
2
votes
1 answer

Golang - TLS mutual authentication - Dump client certificates

I have TLS server with mutual authentication. I want to dump client certificates if handshake error. I use ErrorLog in http.Server struct, but this logger doesn't get the information about client certificates. I tried to use the VerifyConnection…
2
votes
1 answer

Reloading a java.net.http.HttpClient's SSLContext

I've got a program that makes use of the java.net.http.HttpClient, which was introduced in Java 11, to connect and send requests to internal services. These services are mutually authenticated, both presenting certificates issued by an internal…
Savior
  • 3,225
  • 4
  • 24
  • 48
2
votes
1 answer

Does MockRestServiceServer support mutual TLS and if so, how to configure it?

We use org.springframework.test.web.client.MockRestServiceServer in our IT tests to verify our RestTemplate handling. Now, I need to include also some tests for mutual authentication and I'm not sure if this is possible and how to achieve that. Does…
hecko84
  • 1,224
  • 1
  • 16
  • 29
2
votes
1 answer

Https request with mutual authentication passes with curl but fails with java

Someone on github asked me a question regarding my library. This library provides some factory classes to easily create a sslcontext. I make sure not the share the details of the library and just share plain java code and the additional library…
Hakan54
  • 3,121
  • 1
  • 23
  • 37
2
votes
2 answers

Add Root CA to Azure App Service for Client Certificate Authentication

I'm building a web app that relies on client certificates for authentication. I've been able to get it running successfully on a Windows VM through IIS though I had to add the Root CAs for the client certificates to the certificate store. I can't…