' server.ssl.key-store = src/main/resources/laitadmin.p12 server.ssl.key-alias= 1 server.ssl.keyStoreType= PKCS12'
' at sun.security.util.ObjectIdentifier.<init>(ObjectIdentifier.java:257) ~[na:1.8.0_251]'
' server.ssl.key-store = src/main/resources/laitadmin.p12 server.ssl.key-alias= 1 server.ssl.keyStoreType= PKCS12'
' at sun.security.util.ObjectIdentifier.<init>(ObjectIdentifier.java:257) ~[na:1.8.0_251]'
AES encryption in pkcs12 is not supported in java up to java 11. This is a known issue. Reference - https://bugs.openjdk.java.net/browse/JDK-8220734
This is due to openssl3
PKCS12
using PBES2 cipher
which is unsupported in java 8 (at least under 8u301).
Simply install openssl1.1
and use that instead to generate p12 file.
For example in macos,
brew install openssl@1.1
/opt/homebrew/Cellar/openssl@1.1/1.1.1t/bin/openssl pkcs12 -inkey cert.pkey -in cert.pem -export -out cert.p12
I had the same problem, I solved it by exporting again by MS Edge, but now using the TripleDES-SHA1
Cryptography option on Windows export certified wizard.