websolete
02/10/2022, 8:33 PM"web":{
"host":"${HOST}",
"webroot":"www",
"SSL":{
"enable":"true",
"port":"8443",
"certFile":"./certs/domainname.org.crt",
"keyFile":"./certs/domainname.org.key"
},
"rewrites":{
"enable":"true"
}
},
but getting an exception on server start (more in thread)websolete
02/10/2022, 8:33 PM[INFO ] Runwar: Starting RunWAR 4.5.2
[INFO ] Runwar: HTTP2 Enabled:true
[INFO ] Runwar: Enabling SSL protocol on port 8443
[ERROR] Runwar: Unable to start SSL:Could not load certificate
[ERROR] java.io.IOException: Could not load certificate
[ERROR] at runwar.security.SSLUtil.createSSLContext(SSLUtil.java:78)
[ERROR] at runwar.Server.startServer(Server.java:266)
[ERROR] at runwar.Start.main(Start.java:123)
[ERROR] Caused by: java.lang.ClassCastException: class org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo cannot be cast to class org.bouncycastle.asn1.pkcs.PrivateKeyInfo (org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo and org.bouncycastle.asn1.pkcs.PrivateKeyInfo are in unnamed module of loader 'app')
[ERROR] at runwar.security.SSLUtil.loadPemPrivateKey(SSLUtil.java:261)
[ERROR] at runwar.security.SSLUtil.keystoreFromDERCertificate(SSLUtil.java:184)
[ERROR] at runwar.security.SSLUtil.createSSLContext(SSLUtil.java:70)
websolete
02/10/2022, 8:34 PMlaslo7
02/10/2022, 8:45 PMlaslo7
02/10/2022, 8:45 PMwebsolete
02/10/2022, 8:46 PMwebsolete
02/10/2022, 8:48 PMwebsolete
02/10/2022, 8:53 PMwebsolete
02/10/2022, 8:54 PMlaslo7
02/10/2022, 9:01 PMwebsolete
02/10/2022, 9:01 PM