[JIRA] (JENKINS-59452) Support JIRA sites that uses a personal certificate during authentication

18 views
Skip to first unread message

t3knoid@yahoo.com (JIRA)

unread,
Sep 19, 2019, 4:24:02 PM9/19/19
to jenkinsc...@googlegroups.com
Frank Refol created an issue
 
Jenkins / Improvement JENKINS-59452
Support JIRA sites that uses a personal certificate during authentication
Issue Type: Improvement Improvement
Assignee: Dan Alvizu
Components: jira-ext-plugin, jira-plugin, jira-trigger-plugin
Created: 2019-09-19 20:23
Priority: Major Major
Reporter: Frank Refol

In our firms Jira instance, we have to use a personal certificate (PKCS#12) in order to open the page. After I am authenticated the page is shown where I can now interface with Jira such as logging into it with my regular username and password. 

Currently this is not possible using Jira plugin or any Jira plugin for that matter. The Jenkns server that I am using this on is a Windows machine. I've tried installing the personal certificate in that server in the service account that the Jenkins service is running as. I also tried adding the personal certificate in the JRE's certificate store (cacert). Albeit, I had to convert it first. I also tested that I can access Jira using the browser in the Jenkins server logged in as the Jenkins service account.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

t3knoid@yahoo.com (JIRA)

unread,
Sep 19, 2019, 4:29:02 PM9/19/19
to jenkinsc...@googlegroups.com
Frank Refol updated an issue
Change By: Frank Refol
Component/s: jira-steps-plugin
In our firms Jira instance, we have to use a personal certificate (PKCS#12) in order to open the page. After I am authenticated the page is shown where I can now interface with Jira such as logging into it with my regular username and password. 

Currently this is not possible using Jira plugin or any Jira plugin for that matter. The Jenkns server that I am using this on is a Windows machine. I've tried installing the personal certificate in that server in the service account that the Jenkins service is running as. I also tried adding the personal certificate in the JRE's certificate store (cacert). Albeit, I had to convert it first. I also tested that I can access Jira using the browser in the Jenkins server logged in as the Jenkins service account.


In the Jenkins Configuration Jira plugin settings, when I try to validate the settings, I get the following exception stack (note I've obfuscated irrelevant text):
{noformat}
Caused by: org.apache.http.ProtocolException: Not a valid protocol version: You are not allowed to access this resource. For support please email: help...@sxxxxxx.com or call (xxx) xxx-xxxxCaused by: org.apache.http.ProtocolException: Not a valid protocol version: You are not allowed to access this resource. For support please email: help...@strozfriedberg.com or call (212) 981-2662 at org.apache.http.impl.nio.codecs.AbstractMessageParser.parse(AbstractMessageParser.java:209) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:245) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39) at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:121) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588) {noformat}
 

t3knoid@yahoo.com (JIRA)

unread,
Sep 19, 2019, 4:30:01 PM9/19/19
to jenkinsc...@googlegroups.com
Frank Refol updated an issue
In our firms Jira instance, we have to use a personal certificate (PKCS#12) in order to open the page. After I am authenticated the page is shown where I can now interface with Jira such as logging into it with my regular username and password. 

Currently this is not possible using Jira plugin or any Jira plugin for that matter. The Jenkns server that I am using this on is a Windows machine. I've tried installing the personal certificate in that server in the service account that the Jenkins service is running as. I also tried adding the personal certificate in the JRE's certificate store (cacert). Albeit, I had to convert it first. I also tested that I can access Jira using the browser in the Jenkins server logged in as the Jenkins service account.

In the Jenkins Configuration Jira plugin settings, when I try to validate the settings, I get the following exception stack (note I've obfuscated irrelevant text):

 
{quote}Caused by: org.apache.http.ProtocolException: Not a valid protocol version: You are not allowed to access this resource. For support please email: helpdesk xxx @ sxxxxxx xxxxxx .com or call (xxx) xxx- xxxxCaused xxxx Caused by: org.apache.http.ProtocolException: Not a valid protocol version: You are not allowed to access this resource. For support please email: helpdesk xxx @ strozfriedberg xxxx .com or call ( 212 xxx ) 981 xxx - 2662 xxxx at org.apache.http.impl.nio.codecs.AbstractMessageParser.parse(AbstractMessageParser.java:209) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:245) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39) at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:121) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
{quote}
 

 

t3knoid@yahoo.com (JIRA)

unread,
Sep 19, 2019, 4:30:02 PM9/19/19
to jenkinsc...@googlegroups.com
Frank Refol updated an issue
In our firms Jira instance, we have to use a personal certificate (PKCS#12) in order to open the page. After I am authenticated the page is shown where I can now interface with Jira such as logging into it with my regular username and password. 

Currently this is not possible using Jira plugin or any Jira plugin for that matter. The Jenkns server that I am using this on is a Windows machine. I've tried installing the personal certificate in that server in the service account that the Jenkins service is running as. I also tried adding the personal certificate in the JRE's certificate store (cacert). Albeit, I had to convert it first. I also tested that I can access Jira using the browser in the Jenkins server logged in as the Jenkins service account.

In the Jenkins Configuration Jira plugin settings, when I try to validate the settings, I get the following exception stack (note I've obfuscated irrelevant text):

 
{ noformat quote }
Caused by: org.apache.http.ProtocolException: Not a valid protocol version: You are not allowed to access this resource. For support please email: help...@sxxxxxx.com or call (xxx) xxx-xxxxCaused by: org.apache.http.ProtocolException: Not a valid protocol version: You are not allowed to access this resource. For support please email: help...@strozfriedberg.com or call (212) 981-2662 at org.apache.http.impl.nio.codecs.AbstractMessageParser.parse(AbstractMessageParser.java:209) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:245) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39) at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:121) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
{ noformat quote }
 


 

t3knoid@yahoo.com (JIRA)

unread,
Nov 14, 2019, 10:35:03 AM11/14/19
to jenkinsc...@googlegroups.com

t3knoid@yahoo.com (JIRA)

unread,
Nov 14, 2019, 10:38:02 AM11/14/19
to jenkinsc...@googlegroups.com

t3knoid@yahoo.com (JIRA)

unread,
Nov 14, 2019, 10:39:02 AM11/14/19
to jenkinsc...@googlegroups.com

t3knoid@yahoo.com (JIRA)

unread,
Nov 14, 2019, 10:40:02 AM11/14/19
to jenkinsc...@googlegroups.com
Frank Refol edited a comment on Improvement JENKINS-59452
Looking more into this. The following links might be helpful 

[https://stackoverflow.com/questions/18541813/how-do-i-pass-the-client-certificate-with-http-client/18542079]

Downloaded code, [ClientCustomSSL.java|

https
http :// hc example . apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientCustomSSL.java com ], referenced in above thread and attached here, [^ClientCustomSSL.java]

 

t3knoid@yahoo.com (JIRA)

unread,
Nov 14, 2019, 10:40:02 AM11/14/19
to jenkinsc...@googlegroups.com
Frank Refol edited a comment on Improvement JENKINS-59452
Downloaded code, [ClientCustomSSL.java| http https :// example hc . com apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientCustomSSL.java ], referenced in above thread and attached here, [^ClientCustomSSL.java]

 

t3knoid@yahoo.com (JIRA)

unread,
Nov 14, 2019, 10:41:02 AM11/14/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages