on 2023 Aug 29 10:48 AM
We are running CCO manager with an Apache Tomcat on version 9.0.63.
We have replaced old wildcard certificates with new ones. Now, after restarting Apache Tomcat, Tomcat and CCO manager are not started anymore. In the error log we find this stack:
Caused by: java.io.IOException: overrun, bytes = 925
at java.base/javax.crypto.EncryptedPrivateKeyInfo.<init>(Unknown Source)
at org.apache.tomcat.util.net.jsse.PEMFile$Part.toPrivateKey(PEMFile.java:204)
at org.apache.tomcat.util.net.jsse.PEMFile.<init>(PEMFile.java:146)
at org.apache.tomcat.util.net.jsse.PEMFile.<init>(PEMFile.java:98)
at org.apache.tomcat.util.net.SSLUtilBase.getKeyManagers(SSLUtilBase.java:316)
at org.apache.tomcat.util.net.SSLUtilBase.createSSLContext(SSLUtilBase.java:247)
at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:105)
... 20 more
What do we need to do to fix this? In the past we were running on Tomcat 9.0.45 here these issues did not occur.
Request clarification before answering.
Hi Gunther,
we had a similar problem with a customer. For this an unencrypted PRIVKEY file had to be used. The Tomcat has a problem with the RSA encryption in this version.
We have proceeded as follows:
1. Stop Tomcat
2. Swap the certificate and the Privkey file (without encryption) in the relevant folder
3. Start Tomcat
Public-Key Cryptography Standard #1: RSA Procedure - public-key procedure based on the RSA algorithm - mechanisms for signing and encrypting data.
Public-Key Cryptography Standard #8: Private-Key Information Syntax - Standard describing the syntax of a private key and its attributes.
in the following links the topic is already described:
https://stackoverflow.com/questions/48958304/pkcs1-and-pkcs8-format-for-rsa-private-key
Best regards
Maximilian Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.