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

issue using https protocol #25

Closed
hridyeshpant opened this issue Dec 29, 2014 · 4 comments
Closed

issue using https protocol #25

hridyeshpant opened this issue Dec 29, 2014 · 4 comments

Comments

@hridyeshpant
Copy link

getting below error while using copy job API jenkins server is configured with HTTPS
SELF_SIGNED_CERT_IN_CHAIN.
Same things is working fine in other jenkins server which are in HTTP.

Can you please suggest,what is the issue with https?

@hridyeshpant
Copy link
Author

things are working fine with https as well if strictSSL:false parameter are passed in all the request function.
Is there way we can pass such type of parameter in jenkins API ?

i.e
get_config_xml: function(jobname, callback) {
/*
Get the config xml for a job
/
console.log("
*** url :"+build_url(CONFIG, jobname));
request({method: 'GET', url: build_url(CONFIG, jobname),strictSSL:false}, function(error, response, body) {
if ( error || response.statusCode !== 200 ) {
callback(error || true, response);
return;
}
var data = body;
callback(null, data);
});
},

@hridyeshpant
Copy link
Author

in case we need to pass certificate things without strictSSL:false parameter,but there is no way to pass such parameter while calling node-jenkins-api's API.
So all the request function need to pass strictSSL:false parameter by default

@chamerling
Copy link
Contributor

Hi @hridyeshpant,

done in #27

Cheers

@jansepar
Copy link
Owner

PR has been +1ed and merged. Thanks again @chamerling!

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

3 participants