Giter Club home page Giter Club logo

Comments (5)

diffalot avatar diffalot commented on August 13, 2024 5

i had a similar problem trying to use a letsencrypt certificate for my jenkins master, and i wasn't able to get the noCertificateCheck to work even when modifying the jenkins-slave script, so I downloaded the .der format "Let’s Encrypt Authority X3 (IdenTrust cross-signed)" certificate from https://letsencrypt.org/certificates/ and added it to the openjdk keystore. You can do something similar in your dockerfile with your self signed certificate:

USER root
ADD lets-encrypt.der .
RUN keytool -importcert -alias local-CA \
  -keystore /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/security/cacerts \
  -file lets-encrypt.der \
  -storepass changeit
USER jenkins

ENTRYPOINT ["jenkins-slave"]

Note that you probably have your self signed cert in pem format, and java needs it in der format, so something like openssl x509 -outform der -in certificate.pem -out certificate.der may come in handy

from docker-agent.

felipecrs avatar felipecrs commented on August 13, 2024 2

https://github.com/jenkinsci/docker-jnlp-slave/releases/tag/3.35-5 likely resolves it by adding support of headless connection and explicit env vars for certificates & Co. Please reopen the issue if it does not flly resolve the issue

I don't understand. How does that solves the issue? How to set a custom certificate?

from docker-agent.

oleg-nenashev avatar oleg-nenashev commented on August 13, 2024 1

https://github.com/jenkinsci/docker-jnlp-slave/releases/tag/3.35-5 likely resolves it by adding support of headless connection and explicit env vars for certificates & Co. Please reopen the issue if it does not flly resolve the issue

from docker-agent.

carlossg avatar carlossg commented on August 13, 2024

I guess that is more a question for the EC2 container service plug-in, you can ask in the jenkins users mailing list

from docker-agent.

alikbm avatar alikbm commented on August 13, 2024

@diffalot tried it and it works, thanks

from docker-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.