About java pkcs8 and the OpenSSL pkcs1*
I used the openssl to generate the server and client file,when I used them in my project.It throw an exception about this:
java.security.InvalidKeyException: IOException : algid parse error, not a sequence
at sun.security.pkcs.PKCS8Key.decode(PKCS8Key.java:351) ~[na:1.8.0_77]
at sun.security.pkcs.PKCS8Key.decode(PKCS8Key.java:356) ~[na:1.8.0_77]
at sun.security.ec.ECPrivateKeyImpl.
I've transformed the .key file,but when run the program it throw Port xxxx was already in use.I'm sure there is no program used.
If you post an error like this please also include at least the relevant parts of your configuration, such as cert file names.
As for the original error. This sounds like an error where you use Java11/17 to create the keystore but use J8 to load it. Some algorithms have been added in the later Java versions that fail on J8. Adding bcprov/bcpkix might help to solve the issue, but that I'm not sure. Another potential solution is to change the keystore extension as the default keystore type might not fit.
As for the later error:
Please post the error message/logs and relevant configuration.
No feedback/information provided.