The SQL Agent doe snot start with the error message below in the log.
U02000295 Unable to load private key from file '\<Agent>\bin\.\security\<AgentName>.pem', error 'java.security.InvalidKeyException: Cannot retrieve the PKCS8EncodedKeySpec'.
U02000330 The private key cannot be read. Please check the given password and the encoding of the file.
- java.security.InvalidKeyException: Cannot retrieve the PKCS8EncodedKeySpec
- Caused by javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption
Product: CA Automic Workload Automation - Automation Engine v21.x, SQL Agent v21.x
Component :
The issue is with faulty *.PEM file.
Please do the steps below:
-Backup all the files located in the agent's directory below
''\<Agent>\bin\.\security\
-Restart the agent