Error when import certificate (604 Views)
Reply
HP Expert
NgocNgo
Posts: 219
Registered: ‎06-30-2013
Message 1 of 6 (604 Views)

Error when import certificate

Dear friends,

 

I have some trouble when create the SSL Self Signed Certificate. I got the keytool error: "java.lang.Exception: Certificate not imported, alias <servicemanager> already exists”. Please see the detail on the attached image.

I assume that this is because of I have missed the step to uninstall the original certificate from my server.

Please correct me if I am wrong and also, could you please let me know the step to uninstall the original certificate.

 

Thanks a lot in advance and Best regards,

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Also, please assign a Kudo to the post if you find it is helpful
Esteemed Contributor
Kelalek2
Posts: 187
Registered: ‎08-05-2011
Message 2 of 6 (578 Views)

Re: Error when import certificate

There are many examples in a net about this, I've used following in a .bat file:

---

set JAVA_HOME="C:\Program Files\Java\jdk1.6.0_24\jre"
set KEYTOOL=%JAVA_HOME%\bin\keytool

set CACERT_PASSWD=changeit

 

%KEYTOOL% -delete -noprompt -alias smserver -keystore certs\cacerts -storepass %CACERT_PASSWD%

---

 

where

- %Keytool% is the Java path

- %CACERT_PASSWD% the password you have defined to the CA you created

 

Remember to also change 

* -alias smserver -> to alias <thealiasyouwanttoremove>

* - keystore certs\cacerts -> to folder where the cacerts file is located

HP Expert
lisajo
Posts: 480
Registered: ‎02-15-2010
Message 3 of 6 (548 Views)

Re: Error when import certificate

Hi

 

You might look at this and see if this helps

 

http://h30499.www3.hp.com/hpeb/attachments/hpeb/itrc-695/43320/1/359137.txt

"HP Support
If you find that this post or any post resolves your issue, please make sure to mark it as an accepted solution."
HP Expert
NgocNgo
Posts: 219
Registered: ‎06-30-2013
Message 4 of 6 (539 Views)

Re: Error when import certificate

Hi Kelalek,

 

Thank you for the information! One more question, could you please help me to check if the following command is correct:

to C:\Program Files\Java\jre1.5.0_06\bin\keytool> -delete -noprompt -alias servicemanager -keystore C:\Program Files\HP\Service Manager 7.11\ssl\certs\cacerts -storepass changeit

 

Thanks again!

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Also, please assign a Kudo to the post if you find it is helpful
HP Expert
NgocNgo
Posts: 219
Registered: ‎06-30-2013
Message 5 of 6 (538 Views)

Re: Error when import certificate

Hi Lisajo,

 

Thank you for the provided information. I will have a look on those useful information.

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Also, please assign a Kudo to the post if you find it is helpful
Frequent Advisor
JosieJosie02
Posts: 62
Registered: ‎01-05-2012
Message 6 of 6 (390 Views)

Re: Error when import certificate

How do you uninstall/remove the SSL Cert with the alias that you are wanting to use?

 

Josie

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.