- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-17-2018 10:23 PM
We are trying to install the SSL certificate on the PTA Server and its not allowing to install since the ROOT cert already exists and also it complains private key is not found.
Below are the steps we followed,
Ran the utility to install the certificate and generated the CSR.
Then we ran the Install SSL certificate chain but after installing the ROOT cert we had to cancel the utility.
When we reran the utility,we got the below error,
Also,after did a lot of troubleshooting,now its complaining the Private key is missing.
We restored the keys from the backup location and still it complained the same.
We finally decided to rebuild the server.This time we would like to know the following options,
How to export the private key?
How to import a private key if a CSR is generated outside of the PTA Server?
How to remove and install the root certs?
How do request a SSL cert for reissuing if we lost the private key?
Error:
====
This step requires Vault Admin credentials using CyberArk authentication, and a restart of PTA services.
Installing SSL Certificate Chain (Root, Intermediate(s), PTA Server certificates):
Do you have a Root Certificate (y/n)?: y
Specify your Root Certificate full path (for example: /tmp/RootCertificate.crt): /root/cert.cer
Unexpected error. See log for more details.
An error occured while importing root certificate. Command output: keytool error: java.lang.Exception: Certificate not imported, alias <rootCertificate> already exists
Action completed
Exiting utility.
10-18-2018 12:18 AM
@Antony Sunny ,
Firstly, the PTA keystore is located at /opt/tomcat/ca/
called pta_server.keystore
You can use the keytool (Java SDK) to list and remove any certificate that is found inside this store.
/usr/java/jdk1.8.0_171/bin/keytool -list -keystore /opt/tomcat/ca/pta_server.keystore
The next command would be to delete an alias
/usr/java/jdk1.8.0_171/bin/keytool -delete -keystore /opt/tomcat/ca/pta_server.keystore -alias rootCertificate
The above is just an example.
10-18-2018 12:30 AM
@Che-Wing Cheung Thanks this should help in removing the root cert and add it back.
Also,Do we have any steps to export the Private Key, from the PTA Server?And How can we import the Private Key if the CSR is generated outside of the PTA Server.
10-18-2018 12:39 AM
Hello @Antony Sunny ,
If you run the keytool standalone it will give you all the other options like -exportcert -importcert etc.
Similarly, you can do keytool -exportcert -help to get more information.
11-19-2018 07:44 PM
Hi,
I encountered a similar problem whereby the error is as follows: "Command output: keytool error: java.lang.Exception: Public keys in reply and keystore don't match."
What does it mean? please advise.
11-20-2018 03:26 PM
@Sherice Ching Looking at the error,I believe the Private key is not matching with the Public key.Did you create the CSR from the same server,where you are getting this error?If so public cert should match with the Private key that exists.
11-22-2018 07:25 PM
@Antony Sunny
I have done installing the SSL Ceritifcate on PTA Server. The error is solved. However, I encountered another problem.
What I have done was:
Creating the CSR from PTA Server>Complete the Certificate Request using ADCS>Import this certificate to the PVWA Certificate Store. In addition, I used the ADCS to generate a root certificate, which is then imported to the PVWA Certifcate Store. However, when I login to PVWA and navigate to Security>Security Configurations, the following error still persists. Please assist.
11-26-2018 09:49 PM
@Sherice Ching Can you try enabling the PVWA logs and check under %WINDIR/Tmp/PVWA..It should lead us why this fails.I remember i had this error,but not sure what was the fix.
04-29-2019 01:01 AM
Download the Base 64 ecoded cert, this contains the Root, intermerdiary and the PTA Certificate. Make sure the cert exist on the PVWA servers. There should also be an 'A' record that point to PTAServer.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

