JIRA Core activity stream gadget not working after installing SSL

piyuuush44 November 5, 2019

Hey i have my jira core installed on my aws ec2-instance centos, earlier i used it without ssl so everything used to work fine but after installing ssl my activity stream gadget is not working and i have a error that says "Jira is reporting that it is using the URL scheme 'http', which does not match the scheme used to run these diagnostics, 'https'. This is known to cause Jira to construct URLs using an incorrect hostname, which will result in errors in the dashboard, among other issues."

 

my server.xml file have 

<Connector port="8085" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" secure="false" scheme="https"
proxyName="jira.mydomain.com" proxyPort="443"/>

 

and in my apace setting for virtualhost are 

ServerName jira.mydomain.com
ProxyRequests Off

<Proxy *>
Require all granted
</Proxy>

ProxyPass / http://jira.mydomain.com:8085/
ProxyPassReverse / http://jira.mydomain.com:8085/
ProxyPreserveHost On

SSLEngine On
SSLCertificateFile /etc/pki/tls/certs/uspl.crt
SSLCertificateKeyFile /etc/pki/tls/private/uspl.key
SSLCACertificateFile /etc/pki/tls/certs/uspl.ca-bundle

</VirtualHost>

<VirtualHost *:8085>
ServerName jira.mydomain.com
Redirect Permanent / https://jira.mydomain.com/
</VirtualHost>


<VirtualHost *:80>
ServerName jira.mydomain.com
Redirect Permanent / https://jira.mydomain.com/
</VirtualHost>

1 answer

0 votes
Vickey Palzor Lepcha
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 5, 2019

Have you tried importing the ssl certificates in to jira keystore ? 

Try that - reboot JIRA and check your gadgets once again.

piyuuush44 November 5, 2019

i have laready done this to import ssl cert to keystore.. and it resulted in success 

openssl s_client -connect jira.yourdomain.com:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > public.crt
sudo /opt/atlassian/jira/jre/bin/keytool -import -alias jira.yourdomain.com -keystore /opt/atlassian/jira/jre/lib/security/cacerts -file public.crt

  

piyuuush44 November 5, 2019

however this doesnt resolve my issue

Like Saurabh Gupta likes this

Suggest an answer

Log in or Sign up to answer