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

Can an Amazon ELB break mutual TLS authentication?

I have a service running behind an ELB on AWS Fargate as a docker container with nginx inside it on port 443 (https). I have added client certificates to my nginx.conf: ssl_verify_client on; ssl_verify_depth 2; ssl_client_certificate…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
0
votes
1 answer

SSLError(SSLCertVerificationError) when presenting client side cert and key

I have a website that is hosted behind company's network. You could only connect to it using the client.crt and client.key. This client.crt is signed by a self signed ca.crt which is referenced in the apache config file. I installed the server…
Shery
  • 1,808
  • 5
  • 27
  • 51
0
votes
1 answer

Mutual TLS works with Postman or SoapUI but doesnt work with Java / Springboot

I try to call an endpoint via HTTP Post method which is secured via Mutual TLS which means that I am using a keystore / truststore in order to authenticate. When I try via SoapUI / Postman it works fine, of course I have to provide the keystore in…
doct0re
  • 373
  • 4
  • 10
0
votes
0 answers

AES256 password exchange for Mutual authentication - different encrypt result between client - server

i'm trying to fix a critical bug emerged during a penetration test on our application. Environment: an old Gupta/SQL Windows desktop application that need the support from a java webapp (hosted on IBM WebSphere) to operate on db/communicate on CICS;…
0
votes
0 answers

How to ignore server certificate when implementing mutual authentication with OkHttp?

I'm trying to implement mutual authentication in my Java program. Basically, my program has to make an HTTP request to another server. I need to attach a client certificate to that request and ignore the self-signed certificate of the server. In…
Triet Doan
  • 11,455
  • 8
  • 36
  • 69
0
votes
1 answer

AWS API Gateway Mutual TLS certificate selection notification not shown in browser

How can I get an URL exposed through AWS API Gateway to trigger the notification popup for certificate selection in the browser? I have an API Gateway that (I hope) has been correctly configure to use mutual TLS authentication. For example, unless I…
0
votes
2 answers

HAProxy: unable to forward client-certificate in a header without validation

I have a mutual-TLS setup with HAProxy terminating incoming SSL connections. I need to perform client certificates validation on the backend, not on haproxy side since we have a dynamic truststore and I cannot just set a single ca-file and delegate…
0
votes
2 answers

Mutual Authentication(Two-Way TLS/SSL) with cloud residing KeyStores and TrustStores(Secret Manager) -Spring boot

I'm working on Mutual Authentication in spring boot and I could implement it locally and its running smooth.But I wanted to get certificates/stores from Amazon/Google certificates manager or may be from s3 bucket. Previous Configuration As I have…
0
votes
1 answer

mTLS using Azure Function HTTP Trigger?

I'm working at building an auth token server using a Python Azure Function with HTTP trigger. The goal is to use mutual TLS (mTLS) authentication. The way it will work: Client sends http request to Function endpoint with two headers: requestor-id…
SeaDude
  • 3,725
  • 6
  • 31
  • 68
0
votes
1 answer

Spring Webflux Security - authorized endpoint based on client certificate

Question about Spring Security with Webflux. I have a SpringBoot Webflux web app with Spring Security. The same app also have SSL Server enabled with keystore and truststore for two way SSL, mTLS. At this point, already, clients trying to request…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
0
votes
1 answer

"CertificateRequest" is not happening when when client auth is enabled in Spring-Boot Application?

I'm using two spring boot applications as a server and client. I configured two way SSL as below. Server application.properties…
Mathu
  • 1
  • 3
0
votes
1 answer

How to manage large keystore of client certificates to load test Mutual TLS with JMeter

I'm trying to load test a web application that uses mutual TLS. It's a requirement that I use a large data set of client certificates(on the order of 30k). My initial scaled down tests using the keystore configuration as described in this article…
asenec4
  • 367
  • 3
  • 16
0
votes
1 answer

_ssl.c:777 sslv3 alert certificate unknown in ftplib program

I'm trying to implement mutual authentication on a ftps connection using ftplib module. Here is my code: Context =…
Sy-py
  • 11
  • 2
0
votes
0 answers

How to write Java code inside Oracle procedure

I have created a Java source and compiled it and wrapped it in an Oracle 19c procedure with the jdk+jre 1.8.0._201. I'm connecting to a suite that uses TLS 1.2 with mutual authentication(with a private key). I have already set java permissions using…
0
votes
0 answers

How to set TLS client certificate check as mandatory in NGINX and test it?

in our e-commerce service we are trying to implement mutual TLS (TLS1.2 client certificate validation) between a generic client (I use the openssl utility CLI) and a webapp behind nginx. It appears our openssl s_client request succeed either we…
lsambo
  • 300
  • 3
  • 21