Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to login #105

Open
planetscripton opened this issue Jun 5, 2019 · 3 comments
Open

Unable to login #105

planetscripton opened this issue Jun 5, 2019 · 3 comments

Comments

@planetscripton
Copy link

Hello,
Running:
MacOS 10.14.5
Node 12.4.0
Alfred 4.0.1 b1078

When I try to log in, I get an error "Unable to receive response from https://{my jira url}".

When debugging the workflow, this is the error:
Error: write EPROTO 4450465216:error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol:../deps/openssl/openssl/ssl/statem/statem_lib.c:1922:

Any ideas?

Thanks,
Dan

@steyep
Copy link
Owner

steyep commented Jun 7, 2019

The SSL error makes me think that maybe your jira instance doesn't support https protocol. Have you tried switching it over to http as described here?

@planetscripton
Copy link
Author

I'm able to log into another (test) instance that isn't using SSL, by using the http:// option - however, neither http:// or https:// work for my main instance, which is using SSL.

Is there any kind of separate key store used for alfred or this plugin, that maybe I need to import the cert to or something? It's an externally issued cert from InCommon RSA Server CA.

@steyep
Copy link
Owner

steyep commented Jun 14, 2019

Are you trying to access the https endpoint over an http proxy? What you're describing seems like it could be related to axios/axios#925.

You could try applying this patch and see if it allows you to authenticate:

diff --git a/lib/jira/auth.js b/lib/jira/auth.js
index 357d221..6b80e4c 100644
--- a/lib/jira/auth.js
+++ b/lib/jira/auth.js
@@ -54,6 +54,7 @@ let Auth = {
   'checkConfig': function() {
     config.token = keychain.find();
     config.req = {
+      httpsAgent: new require('https').Agent({ rejectUnauthorized: false }),
       headers: {
         'Content-Type': 'application/json',
         'Authorization': 'Basic ' + config.token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants