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

renew the signer certificate for jenkins #3323

Closed
smerle33 opened this issue Jan 9, 2023 · 5 comments
Closed

renew the signer certificate for jenkins #3323

smerle33 opened this issue Jan 9, 2023 · 5 comments

Comments

@smerle33
Copy link
Contributor

smerle33 commented Jan 9, 2023

Service(s)

Release certificates

Summary

Has seen in the weekly build last week : "The signer certificate will expire on 2023-03-30." (code signing certificate)
we need to make sure to renew this.

https://release.ci.jenkins.io/job/core/job/release/job/master/190/consoleFull

Reproduction steps

No response

@smerle33 smerle33 added the triage Incoming issues that need review label Jan 9, 2023
@dduportal dduportal removed the triage Incoming issues that need review label Jan 10, 2023
@dduportal dduportal added this to the infra-team-sync-2023-01-17 milestone Jan 10, 2023
@dduportal
Copy link
Contributor

@MarkEWaite and I are going to pair on this one. We might need @olblak 's knowledge.

@olblak
Copy link
Member

olblak commented Jan 10, 2023

@MarkEWaite and I are going to pair on this one. We might need @olblak 's knowledge.

Feel free to ping

@lemeurherve
Copy link
Member

Related: #3361

@dduportal
Copy link
Contributor

We were able to successfully update the code signing certificate during a mob-programming sessions.
Both weekly 2.399 and LTS 2.387.2 were released fully signed.

A summary of the actions taken by the team:

# Based from https://knowledge.digicert.com/solution/SO26449.html and https://github.com/jenkins-infra/release/blob/7a03f98eff839d4fed75ea96cf7bebbc963e3a91/README.adoc#certificate

# P7B to PFX: 1/2
openssl pkcs7 -print_certs -in jenkins-release.p7b -out jenkins-release.crt
## Asks for the Export password, transmitted by Digicert from another channel
## Asks for the private key passphrase, generated for the CSR sent to Digicert

# Check certificate attributes
openssl x509 -in jenkins-release.crt -text -noout

# Generate intermediate CA (does not seem required)
openssl pkcs7 -in jenkins-release.p7b -text -print_certs -out intermediateCert.crt

# P7B to PFX: 2/2
openssl pkcs12 -export -in jenkins-release.crt -inkey jenkins-release.key -out jenkins-release.pfx
## Asks for an Export password: do not set any (type enter only)
Enter Export Password: # Empty!!
Verifying - Enter Export Password: # Empty!!

# Check PFX file
openssl pkcs12 -info -in jenkins-release.pfx

# Import the pfx file in Azure Vault with NO password specified

@dduportal
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants