Jira-CLI with SSL causing issues

Hi All,

Trying to setup jira-cli with a production JIRA instance using SSL. I keep getting the below error when trying to run a CLI command.

Ex:  ./jira.sh --action getServerInfo

Client error: Invalid request: javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name


Above Bobswift documentation suggests that I add a "ServerName" setting in apache configurations. I have added it as below in the httpd.conf file. But i still keep getting that ERROR.

I tried adding below one at a time

ServerName servername:8080

ServerName servername:80

ServerName servername

ServerName ipaddress


 Anyone facing similar Issue ?


Thanks for reading


3 answers

This widget could not be displayed.

It looks like you're trying to reach an https based server?  You'll need to have the right certificates for that (and it probaby explains why your four server names don't work - none of them are https addresses)

Yes Its a https server.

Thanks Nic.

Let me try that

This widget could not be displayed.

If the server is secured with SSL, then yes, you'll need the right certificates, irrespective of source.

I usually terminate SSL at the proxy, so when I'm on the local server, it won't kick in because the proxy handles the ssl.

This widget could not be displayed.

Resolved the issue by using 

http://localhost:8080 inside the jira.sh file instead of using the domain name, since i was already inside the server.

@Nic Brough [Adaptavist] Thanks Nic for making me realize to use localhost.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

106 views 2 0
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