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
22
votes
4 answers

Mutual-authentication with web services

Currently, I've been successful implementing Mutual Authentication security so long as the client accesses the website using a web browser, because browsers take care of all the certificate exchange for you. Now I need to create a secure interface…
bkritzer
  • 1,418
  • 3
  • 16
  • 27
19
votes
5 answers

Mutual authentication with Tomcat 7

I'm trying to set up a Java web service running in Tomcat 7 to use mutual (2-way) authentication. It seems like no matter what I do, connecting to the service on the secure port isn't working. Here's what I did to create certificates and keystores…
wbj
  • 1,429
  • 2
  • 15
  • 25
19
votes
4 answers

Using client certificates with urllib2

I need to create a secure channel between my server and a remote web service. I'll be using HTTPS with a client certificate. I'll also need to validate the certificate presented by the remote service. How can I use my own client certificate with…
Ned Batchelder
  • 364,293
  • 75
  • 561
  • 662
18
votes
2 answers

Delphi mutual authentication

I use the WinINet library to connect to a website. Using the Internet Explorer (Win10) it works and shows me the message to select the certificate to use. This is the delphi code I call: FUNCTION TRAD.lastOrganization(): Integer; VAR …
Grim
  • 1,938
  • 10
  • 56
  • 123
16
votes
4 answers

Warning: no suitable certificate found - continuing without client authentication

Team I am facing following issue when try to complete a mutual handshake using HTTPS main, READ: TLSv1.2 Handshake, length = 30 *** CertificateRequest Cert Types: RSA, DSS, ECDSA Supported Signature Algorithms: SHA1withRSA, SHA1withDSA,…
P.K
  • 161
  • 1
  • 1
  • 4
14
votes
3 answers

Signing certificate request with certificate authority

I want to use TLS mutual authentication to authenticate a client on a API made in go. I've created a certificate authority, and let's say Bob has a key pair he wants to use with the client. Bob created a certificate request and want me to validate…
krostar
  • 345
  • 1
  • 3
  • 10
13
votes
2 answers

How to implement client certificates and server authentication for iOS

I have recently gone through an extremely arduous process to build something that should be very simple yet appears to be essentially un-findable in any one place. I’d like to try to put everything here to ask if I’m doing anything wrong and, if…
saminpa
  • 603
  • 1
  • 7
  • 13
12
votes
1 answer

IOS Mutual Authentication

I'm trying to implement mutual authentication in IOS 5 but i'm having troubles: {NSUnderlyingError = "Error Domain=kCFErrorDomainCFNetwork Code=-1200 \"An SSL error has occurred and a secure connection to the server cannot be made.\"…
lontra
  • 301
  • 2
  • 9
11
votes
1 answer

Getting Mutual SSL Authentication information with Heroku

I'm looking to build a mutual ssl authentication with Heroku, where a third party calls a Heroku endpoint and the response from Heroku is dependant on which third party calls Heroku. I need to use mutual ssl as the third parties are very security…
Mark Sivill
  • 825
  • 1
  • 9
  • 18
10
votes
1 answer

Mutual Authentication (2-way SSL) in AWS Lambda

I am building an AWS Lambda service for a small PoC. The flow in PoC is : take a (text) input via POST, performs a small string manipulation + store the manipulated value into DynamoDB, and then send the same (manipulated) value to a particular…
Sanjeev
  • 1,838
  • 1
  • 16
  • 28
9
votes
2 answers

cUrl with mutual authentication

I am trying to do a cUrl to a 3rd party server. They provided me with a p12 file which I installed in my browser. When using the browser I get a response from the server. When doing a cUrl from the linux terminal I get handshake errors. I extracted…
Owen Nel
  • 367
  • 3
  • 9
  • 21
9
votes
1 answer

Mutual authentication - setup, flow, verification

I am implementing mutual authentication between a single client hosted app (CLIENT) and my spring boot 2 application (SERVER). I understand the steps to be as follows: The server generates a keystore and truststore. The keystore being used for…
9
votes
2 answers

Accessing client certificates from an HTTP Request

I'm attempting to access a client certificate inside my web API from an HTTP request. I'm attaching a certificate as follows: X509Certificate2 clientCert = GetClientCertificate(); HttpWebRequest request =…
Mason
  • 319
  • 3
  • 12
9
votes
1 answer

How to authenticate a client using a certificate in ServiceStack?

I'm exploring using ServiceStack as an alternative to WCF. One of my requirements is that the server and client must mutually authenticate using certificates. The client is a service so I cannot use any type of authentication that involves user…
r2_118
  • 640
  • 1
  • 9
  • 25
8
votes
1 answer

OpenSSL error:02001002:system library:fopen:No such file or directory no key found, wrong pass phrase, or wrong file format, git bash vs cmd

I have an application which exposes the urls using mutual Authentication. Now I am writing a python script which uses Popen to run the curl command to connect to the application and gets me the required data. But when I run the python script I get…
HumbleProgrammer
  • 101
  • 1
  • 2
  • 5
1
2 3
20 21