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

Are there any public web services that will check for an MTLS cert and response with application/json

A different thread pointed out a couple of services that would require a client MTLS certificate, accept any cert, and then respond with information about the SSL handshake/certs. HTTPS test server that checks client certificates These endpoints…
Jason Mathison
  • 1,181
  • 1
  • 10
  • 18
7
votes
1 answer

How to do Mutual Authentication in C#?

I need to know how to do Mutual Authentication in c#. I know it is pretty easy in WCF applications. However, I have to do two way SSL authentication from console applciation in C#. I have the two public certificates for client and server. Any help…
Anees Deen
  • 1,385
  • 2
  • 17
  • 31
6
votes
2 answers

Requesting Client Certificate with Asp.net MVC

I'm trying to retrieve from the client browser a client certificate to authenticate the user. I know i can create a folder with the same name as the controller and, with IIS, set its SSL settings to require a client certificate. In fact, I've tried…
6
votes
1 answer

Mutual authentication using Retrofit Android

I need to send a .CRT and .KEY file on an api request. I managed to do the request using Postman, but I don't know how to pass the key in the android code. CRT: -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- KEY: -----BEGIN RSA PRIVATE…
6
votes
2 answers

Custom urllib opener that uses client certificates

I have got an API that I have to work with. The API is secured by HTTPS and uses mutual authentication/client certificates. I have a PEM file and a CRT file. When I connect to the server regularly, using PyOpenSSL I have no problem, here is the…
Hosane
  • 915
  • 9
  • 19
6
votes
2 answers

Is Mutual auth with aws api gateway possible?

I have an application installed in tomcat which currently I am running on http. Also I have used AWS API gateway to expose my application . I want to implement mutual auth between aws api gateway and my api which we have created . Is there any…
6
votes
1 answer

Best practice to store client certificates?

I am building an app that requires mutual authentication. So I will enable my users to upload a bunch of client certs and when they make calls, they can use either of them. I will match the client cert from the incoming request to see if it matches…
GrowinMan
  • 4,891
  • 12
  • 41
  • 58
6
votes
0 answers

How to use DER encoded cert with mutual authentication in RESTful web service?

Currently I am working on an app that uses mutual authentication in order to communicate with a REST interface. Because I am very new to this topic I studied several examples - and now I have some questions. I hope that I am able to stick all…
midori
  • 450
  • 6
  • 19
6
votes
1 answer

SSL mutual authentication FAIL on Android Client accepts servers certificate but server does not get the client cert

I am trying to set up a mutually authenticated SSL between a Linux Server and Android APP. So far, I have been able to get the app to work with the server certificate communicate via SSL but once I set the server to only accept client certificates…
jmarrero
  • 221
  • 3
  • 8
5
votes
1 answer

Using root certificate for AWS api gateway

I am trying to use a valid root CA for mutual SSL in AWS api gateway. However, AWS give me this error message: API Gateway couldn’t build a unique path from the given certificate to a root certificate. The certificate is the following: -----BEGIN…
5
votes
1 answer

The size of the handshake message (X) exceeds the maximum allowed size (32768):spring boot resttemplate

I am getting the above error when making post request, using spring resttemplate with mutual authentication. @Bean public RestTemplate restTemplate() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException,…
Mihir
  • 121
  • 1
  • 7
5
votes
2 answers

Go: HTTPS Request using a Client Certificate stored on a SmartCard (Windows)

To perform client certificate authentication (mutual authentication) all examples I've found assume that a private key is accessible (e.g. from a file). A certificate containing private and public key is generated like this: cert, err :=…
Knack
  • 1,044
  • 2
  • 12
  • 25
5
votes
1 answer

HttpClient isn't using Client Certificate for Mutual TLS Auth

Question Why will my HttpClient instance not use my provided client certificate for mutual auth? Background I'm using HttpClient to do mutual TLS. As the client, I'm adding a client certificate to a WebRequestHandler and then using that handler in…
Justin Self
  • 6,137
  • 3
  • 33
  • 48
5
votes
1 answer

Spring boot x509 testing - pcf

In Cloud Foundry I have it configured so that a client certificate is forwarded to my spring boot application. The certificate is placed in a x-forwarded-client-cert header, the spring boot application reads this?, and checks if the CN is…
5
votes
3 answers

HttpClient with client certificate loaded from file

I want to add mutual authentication to my client .NET application that is running under IIS server (it's a web service that calls another web service). Client app loads client certificate from file and it works fine with the following code on my…
1
2
3
20 21