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

NGINX says "client sent no required SSL certificate while reading client request headers" how do we troubleshoot?

We've configured NGINX to use mutual authentication. When a client makes a request to us, we get an info line in the NGINX log saying, "client sent no required SSL certificate while reading client request headers". We believe that the client…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
5
votes
1 answer

Securing WebApi in Azure Api Management

I have deployed my webapi on Azure Websites and exposing it through Azure Api Management Portal. I want to block access on azurewebsites url so that a user can only access my api through azure aoi management proxy through security key. Can you…
5
votes
2 answers

boost asio SSL two way authentication

I need a snippet of code for a program i am writing with Boost Asio SSL. I have a system of two clients, that connect with each other. I require them to do a mutual authentication, so, that at the end of the handshake() command, both clients can be…
user3796577
  • 109
  • 1
  • 8
5
votes
0 answers

Client certificate authentication with Reverse Proxy

I use SSL mutual authentication for my client and server. Now I would like to add a Reverse Proxy. As far as I understand a Reverse Proxy can't forward a client certificate to the backend web-server. Can I work around this shortcoming? E.g. can my…
Dunken
  • 8,481
  • 7
  • 54
  • 87
4
votes
0 answers

Mutual Authentication (aka two-way SSL) for webservices with PHP

I am having trouble working out how to use PHP to make SOAP calls while using Mutual Authentication. I have my Private certificate installed and working on my local server and the end client has installed the public part, and have also given me the…
Rob Ganly
  • 403
  • 2
  • 5
  • 14
4
votes
1 answer

How does Chrome know to provide Client Certificate when no "Client Request" is sent in handshake?

This question has puzzled me while looking into a Mutual SSL failure between my client app and an external Server. When my app tries to connection to the external server's rest API - let's call it https://www.server.com/api/resolve - I expect a…
4
votes
0 answers

Spring Security: X509 (Pre-) Authentication behind Reverse Proxy

Scenario: The application sits behind an NGINX that terminates the TLS connection and does the mutual authentication with the client. The NGINX then forwards the client certificate in an X-SSL-CERT header to the spring-based application. In the…
4
votes
3 answers

Storing a .p12 certificate in keychain to use later

I am trying to follow the apple docs for dealing with client p12 certificates…
4
votes
0 answers

How to connect to an xml/soap web service via SSL with mutual auth?

I'm trying to consume a web service with a certificate, sending a XML/SOAP, via SSL with mutual authentication. I've tried savon and net/http, but I'm stopped with the same error: SSL_CTX_use_PrivateKey: key values mismatch…
4
votes
1 answer

How to implement SSL mutual authentication in iOS where the client certificate is loaded remotely?

I am trying to implement SSL mutual authentication in an iOS app. In most of the examples that I have seen, the client certificate is bundled with the application package. But in my case, I need to load the client certificate remotely (i.e, from a…
Manu Antony
  • 173
  • 1
  • 15
4
votes
1 answer

Why do we need to install the .pfx certificate (as opposed to .cer) in Windows before you can make calls using the client certificate?

I've written a small console application to make a HTTP call to a server using a client certificate. The code I've written reads the .cer file from the specificed location to make the request: X509Certificate Cert =…
GrowinMan
  • 4,891
  • 12
  • 41
  • 58
4
votes
5 answers

Self-Hosted WCF Service with Mutual SSL (between Service and Client) fails with 403 Forbidden

I’m trying to setup a demo of Mutual SSL between a self-hosted WCF service and a client app (command prompt for now). In the end I’m trying to get to a solution where I have transport security (not message security) between a server that uses a…
typhoid
  • 315
  • 5
  • 13
3
votes
1 answer

JBoss mutual certificate authentication fails on SSL Handshake

I followed all the steps in this blogpost http://virgo47.wordpress.com/2010/08/23/tomcat-web-application-with-ssl-client-certificates/ except for the fact that I'm using JBoss7.0.2 and not the 6.x version. The goal is to ask any clients to provide a…
sovo
  • 31
  • 1
  • 4
3
votes
1 answer

Unexpected POST size limit for Azure App Service with TLS mutual authentication

I have an Azure App Service where I need to activate TLS mutual authentication, and I ran into a completely unexpected issue. We need this service in order to upload images from IoT devices; the images are relatively small (<300 KB), and they are…
3
votes
0 answers

Golang - Mutual TLS with Identity from Keychain cannot use signer (type crypto.Signer) as type []byte in argument to tls.X509KeyPair

I am trying to find a way to keychain https client certificate based authentication from macOS system. When I export the certificate and the key I can already successfully connect to my server, but that is not my goal. From the keychain it looks…
1 2
3
20 21