I have a problem with certificates, and I'm not even sure if I chose the right path ... In short. I need my jenkins job to download something during build from a website where I need to use certificate authentication. I have .p12 and .cert certificates. I thought I was just importing them through the Credentials plugin in Jenkins, and so I can use them in tasks, but I cannot do this.
What I have done so far:
I created keystore xxx.jks and imported p12 and cert into it. I tried to add to it the path to "From the PKCS # 12 file on the main Jenkins", but get the message:
Could not load keystore
java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.
I tried to download a certificate from Jenkins, but got the following:
Could retrieve key "cert alias". You may need to provide a password
java.security.UnrecoverableKeyException: Get Key failed: null
I would appreciate any advice or suggestions, including useful documentation (I tried, but I can not find anything useful for me honestly).
Many thanks.
source
share