I am trying to configure the API portal and during configuring Gateway ssl certificate details While entering the Gateway SSL client certifcate file (PEM Format) and giving alias name as ssl its giving following error.
Enter the Gateway SSL Client Certificate file (PEM Format) to use (): /opt/Deployments/lrs/server/conf/keys/APIGatewayCert.pem
Enter the CA API Developer Portal TrustStore password: ********
Enter the alias for your PEM certificate file: ssl
Are you sure you want to import the [/opt/Deployments/lrs/server/conf/keys/APIGatewayCert.pem] file into the CA API Developer Portal TrustStore? [y/n]? y
!-> Error: Writting the Certificate to the Trust Store. Try again.
in the server logs i can see following:
Error (doTrustStore): Writing the Certificate to the Trust Store with Error: keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect
java.io.IOException: Keystore was tampered with, or password was incorrect
Caused by: java.security.UnrecoverableKeyException: Password verification failed
I have imported the private keys from Imported Private Key details from API gateway whose alias is ssl in .p12 format and then converted to .pem. I have given correct password as well.
Please let me know how to resolve this.