Quarkus TLS authentication throws 401 if certificate expires. How to update/change it to throw 5xx error code instead #38515
Unanswered
ngarg-panw
asked this question in
Q&A
Replies: 1 comment 2 replies
-
500 would indicate it is a server error, while with MTLS the expired (client) certificate is indeed an authentication error. Why do you think it should be 500 ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have Certificate based authentication configured successfully.
Here are the contents for docker file:
xec java $JAVA_OPTS $APM_JAVA_OPTS "-Djavax.net.ssl.trustStore=${TRUSTSTORE_LOCATION}" "-Djavax.net.ssl.trustStorePassword=${TRUSTSTORE_PASSWORD}" '-Djavax.net.ssl.trustStoreType=jks' -jar app.jar
Here are the contents from application.yml
http: ssl-port: 8080 port: 0 test-port: 0 ssl: certificate: key-store-file: ${KEYSTORE_LOCATION} key-store-password: ${KEYSTORE_PASSWORD} key-store-file-type: JKS
in case the certificate is expired, the framework throws 401-UnAuthorized error. I want to change it to throw 5xx instead with appropriate error message. How can I achieve that?
Beta Was this translation helpful? Give feedback.
All reactions