How to authenticate in Jenkins while remotely accessing its JSON API?
<p>I need to access the Jenkins JSON API from a Python script. The problem is that our Jenkins installation is secured so to log in users have to select a certificate. Sadly, in Jenkins <a href="https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API" rel="nofollow">Remote Access Documentation</a> they don't mention a thing about certificates and I tried using the API Token without success.</p>

<p>How can I get to authenticate from a Python script to use their JSON API?</p>

<p>Thanks in advance!</p>

<p>I finally found out how to authenticate to Jenkins using certs and wget. I had to convert my pfx certificates into pem ones with cert and keys in separate files <a href="http://stackoverflow.com/questions/15144046/need-help-converting-p12-certificate-into-pem-using-openssl">For more info about that come here</a>. In the end this is the command I used.</p>

<pre><code>wget --certificate=/home/B/cert.pem --private-key=/home/B/key.pem --no-check-certificate --output-document=jenkins.json https:&lt;URL&gt;
</code></pre>

python authentication jenkins