-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Specifying a PEM-encoded self-signed root CA certificate via -cert does not work #908
Comments
@mickaelstrg Hello Sir can i work on this issue ? |
hi @biru-codeastromer, yes, nobody prevents you from working on this I think :) |
@mickaelstrg Okay Sir will work on it. Thanks ! |
biru-codeastromer
added a commit
to biru-codeastromer/docker-agent
that referenced
this issue
Jan 3, 2025
Fixes jenkinsci#908 Add handling for the `-cert` parameter in `jenkins-agent` and `jenkins-agent.ps1` scripts. ## jenkins-agent - Add logic to handle the `-cert` parameter by reading the certificate file content. - Update the `exec` command to include the `-cert` parameter if provided. ## jenkins-agent.ps1 - Add logic to handle the `-cert` parameter by reading the certificate file content. - Update the `Start-Process` command to include the `-cert` parameter if provided. ## debian/Dockerfile - Add instructions to copy the certificate file to the container. - Update the `ENTRYPOINT` to include the `-cert` parameter if provided. ## alpine/Dockerfile - Add instructions to copy the certificate file to the container. - Update the `ENTRYPOINT` to include the `-cert` parameter if provided.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Agent: Debian 12
Controller: Debian 12
both are running in kubernetes
Reproduction steps
-cert @/etc/ssl/certs/ca-certificates.crt
argument (or-cert $ROOT_CA
by dumping the root CA cert into the ROOT_CA environment variable)Expected Results
Connection via HTTPS to jenkins controller works
Actual Results
Connection via HTTPS to jenkins controller does not work
When using the inbound agent to connect to Jenkins which is setup with a self-signed certificate, I'm using the
-cert
parameter from the agent.jar to specify the path to the root CA certificate that is used to sign the jenkins certificate:Work-around by storing the root CA cert in an environment variable:
Cert is valid:
This looks to me like something makes it that part of the certificate is considered an argument so the parsing does not work as expected.
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: