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
0
votes
1 answer

2 way SSL/TLS configuration

If I understand SSL/TLS correctly in server only authentication, After the handshake, the server sends the client it's public key and a digitally signed certificate signed by a CA. If the client has this CA's public key, it can decrypt the…
0
votes
2 answers

Tomcat + SNI + Mutual Authentication

I know that Tomcat provides both SNI and mutual authentication, but is it possible to enable MA only for selected applications/paths? I.e. let's say that I have the following applications/endpoints on my server: /app1 /app2/human /app2/robot where…
Jędrzej Dudkiewicz
  • 1,053
  • 8
  • 21
0
votes
1 answer

JAX-WS standalone server mutual authentication through certificates

I have a simple JAX-WS standalone server which is using TLS: SSLContext ssl = SSLContext.getInstance("TLS"); KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm()); KeyStore store =…
user1563721
  • 1,373
  • 3
  • 28
  • 46
0
votes
1 answer

mutual authentication in offline mode

I am new to encryption and mutual authentication. I am supposed to have a server which issues certificates (maybe on a self-signed Linux machine) and clients which access this server to get a certificate and later these clients establish mutual…
lone_wolf
  • 1
  • 1
  • 3
0
votes
2 answers

How to configure two way ssl on client and server on tomcat 7 using openssl for ssl certificate generation?

I have configured th keystore and trustore using the solution provided by pedrofb given in the following link How to configure two way SSL connection in Spring WS without using Spring boot and using separate Apache tomcat server? I have set the…
briantaurostack7
  • 1,193
  • 2
  • 14
  • 36
0
votes
1 answer

How does Spring ws handle certificates?

Does Spring Ws handle certificates automatically in a two way SSL connection or we have to handle certificates manually(such as sending and verification of certificates)
briantaurostack7
  • 1,193
  • 2
  • 14
  • 36
0
votes
1 answer

mutual authentication using certificate

I have been developing a web application using java and I wanted to use implement mutual certificate authentication. I used a self-signed certificate, I put it on my browser(chrome) and to my glassfish trust store(cacerts.jks) and configure my…
0
votes
1 answer

When does getPrivateKey get called in X509KeyManager?

I'm writing my own implementation of X509KeyManager and I came across the function getPrivateKey(String alias){} and I'm just wondering when is that function gets called. In the documentation it is not very clear when and where all those functions…
Aizen
  • 37
  • 1
  • 1
  • 7
0
votes
2 answers

where to place .jks file in springapp and what relative path to provide in cxf.xml

I have a spring app that acts as a client for the mutual authentication (send a request to a server that is configured for mutual authentication). In the client springapp, I have a cxf.xml file in the src/main/resources. The file gets picked up…
user1892775
  • 2,001
  • 6
  • 37
  • 58
0
votes
0 answers

main, RECV TLSv1 ALERT: fatal, handshake_failure

I have a JAXWS client where I have configured the two properties for mutual authentication: System.setProperty("javax.net.ssl.keyStore","sample.jks"); System.setProperty("javax.net.ssl.keyStorePassword","xxxx"); …
user1892775
  • 2,001
  • 6
  • 37
  • 58
0
votes
1 answer

Mutual Authentication with Jruby Manticore

I am attempting to connect to a remote server which requires mutual auth. I have received a .p12 file from the server, and used the following commands to generate my private key and client cert: openssl pkcs12 -in my_dev.p12 -out clientCert.crt…
bkahler
  • 365
  • 4
  • 18
0
votes
1 answer

two way security (multi-protocol)

I'm implementing an one-to-many multi-protocol server (+ clients) and I'd like to add 2-way security. Here's what I'd like to accomplish: both client and server authenticate to each other in a secure way. there is no human interaction involved on…
wildcard
  • 7,353
  • 3
  • 27
  • 25
0
votes
1 answer

weblogic - mutual authentication - read certificate from HTTP header

I have a couple of java servlets which need to be secured with Mutual authentication with X509 certificates. I used the information from here to implement mutual authentication and it works fine on my machine. Now our integration environment has…
Guru
  • 155
  • 10
0
votes
1 answer

Connecting via mutual SSL fails reading incoming changeCipherSpec

We need to make connect to a server using mutual SSL but for some reason we're getting the following error when trying to make a request: [...] readIncomingTls_changeCipherSpec2: processTlsRecord: processAlert: TlsAlert: level:…
Gavin
  • 2,214
  • 2
  • 18
  • 26
0
votes
0 answers

Configuring Tomcat 7 for Mutual Authentication using a Tomcat Connector or custom Socket Factory

Is it's possible to configure Tomcat to carry out Mutual Authentication using a connector or custom socket factory? My scenario involves a Tomcat web application that includes a SOAP client call to a DataPower server. Mutual Authentication is…