Java.io.IOException Error Decrypting REST Password
search cancel

Java.io.IOException Error Decrypting REST Password

book

Article ID: 265737

calendar_today

Updated On:

Products

CA Automic Operations Manager

Issue/Introduction

When trying to  enable SSL for the dedicated REST process, the process crashes with the below error messages in the logs:

U00045014 Exception 'java.io.IOException: "keystore password was incorrect"' at 'sun.security.pkcs12.PKCS12KeyStore.engineLoad()'.
 U00045015 The previous error was caused by 'java.security.UnrecoverableKeyException: "failed to decrypt safe contents entry: java.io.IOException: getSecretKey failed: Password is not ASCII"' at 'sun.security.pkcs12.PKCS12KeyStore.engineLoad()'.
20230510/123629.069 - 49     U00045129 Search index update: deactivated.

 

Environment

Release : 21.0.5 HF4

Cause

The error usually occurs if the encrypted password is copied into the ucsrv.ini with a (-)  instead of  standard 'minus' ('-')

Resolution

Replacing the first two characters of the encrypted REST password (-) by just standard 'minus' ('-') resolves issue.