Updated certs with comodo now cli broken

Hi all,

I updated the certs with new comodo by replacing the .keytool with the new cert, and since I have been getting: 

Client error: Invalid request: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I have tried to add this to the java in jira.sh command line: 

-Dcom.sun.net.ssl.checkRevocation=false

did not help.  Also I added the previous keystore to the new one and now it has both the old and new keys in the keystore though:

# keytool -importkeystore -destkeystore .keystore -srckeystore .keystore-2017

Which now shows both with a keytool -list and still I get the same above error.

Argg, I do not like / understand certs

Any help would be truly appreciated,

Robert

2 answers

1 accepted

The following commands fixed it.   from the machine that is running the cli as root:

# openssl s_client -connect jira.verdasys.com:8443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > public.crt

# keytool -import -alias jira -keystore /usr/java/jre1.8.0_60/lib/security/cacerts -file public.crt

That is if the java for your system is choosing /usr/java/jre1.8.0_60/lib/security/cacerts as it's cert location.

I actually did a 

#locate cacerts

which returns 5 choices and did it for every one of them.    What is strange is that it is not the same one that was selected when running:

# alternatives --config java

 which should show default java location.  

Anyhow it worked for me

This could be related to this article.

No, that was not it, thanks for the answer though.  At least someone is noticing me :)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

139 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you