feature/Make MTLS works in dev mode

This commit is contained in:
Marko Milić 2023-09-27 15:55:11 +02:00
parent 52fbac9dc5
commit cab6b0fbf7
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -46,10 +46,10 @@ object RunMtlsWebApp extends App {
https.addCustomizer(new SecureRequestCustomizer)
val sslContextFactory = new SslContextFactory()
sslContextFactory.setKeyStorePath(this.getClass.getResource("/cert/server.jks").toExternalForm)
sslContextFactory.setKeyStorePath(this.getClass.getResource("/cert/qc_keystore.jks").toExternalForm)
sslContextFactory.setKeyStorePassword("123456")
sslContextFactory.setTrustStorePath(this.getClass.getResource("/cert/server.trust.jks").toExternalForm)
sslContextFactory.setTrustStorePath(this.getClass.getResource("/cert/new_server.trust.jks").toExternalForm)
sslContextFactory.setTrustStorePassword("123456")
sslContextFactory.setNeedClientAuth(true)