Quarkus Two-Way TLS: Backend does not accept the certificat #24988
-
Hi all, I am trying to implement mTLS by my own regarding to the tutorial from https://quarkus.io/blog/quarkus-mutual-tls/. This is how I have generated
as you can see the Doing the request to the backend via curl
I assume that the private key is missing in the certificate I also tried via Postman with the following certificate configuration: Unfortunately, I have got a bad response: What I am trying to achieve is that I would like to generate client certificates and provide it to customers, so that they can do the requests with a valid certificate to the backend server. The code is hosted on https://github.com/softshipper/playwithmtls. Would be great if someone can help. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'd try with copying the server keystore into client truststore, I do it with the tests all the time. It is indeed a self-signed certificate, you can probably configure postman to accept such certificates somehow. |
Beta Was this translation helpful? Give feedback.
-
Np, I believe you need to create a certificate signing request with the keystore, and ideally signed it by the authority recognized by the browsers, postman, curl, there should be good tutorials online, Quarkus itself does not have it. The browsers allow to make the exceptions for selg-signed certificates though |
Beta Was this translation helpful? Give feedback.
Np, I believe you need to create a certificate signing request with the keystore, and ideally signed it by the authority recognized by the browsers, postman, curl, there should be good tutorials online, Quarkus itself does not have it. The browsers allow to make the exceptions for selg-signed certificates though