Unable to install the SSL certificate in PTA Server

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to install the SSL certificate in PTA Server

L4 Transporter

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.

 

 

 

 

8 REPLIES 8

L6 Presenter

@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.

 

 

L4 Transporter

@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.

 

 

L6 Presenter

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.

 

 

 

L4 Transporter

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.

 

 

L4 Transporter

@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.

L4 Transporter

@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.

 

Field_Content_versions_oct20__0682J000005OgjoQAC.png

L4 Transporter

@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.

 

Field_Content_versions_oct20__0682J00000658tAQAQ.pngDownload 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.

 

  • 2984 Views
  • 8 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!