-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Support signSBOM with gpg public and private key file #3452
Comments
Locally work in following steps SBOM can sign with GPG with some manual steps
|
@sophia-guo agree, using gpgsm & openssl seems an easy option. Both gpgsm and openssl are already on our "gpgsign"(C3jenkins) node. |
More details about using gpg to sign sbom in my local environment. The main part is to convert gpg files to pem files. Also as a note for myself.
|
Feels like it is a quite tedious process to convert gpg to pem could we just convert the gpg to pem and store in the specific agent as the temurin gpg is created and stored in https://ci.adoptium.net/label/gpgsign/ ? Or may need to double check if cyclonedx support sign with gpg directly? I did an investigation and found the answer is "no". But maybe I'm wrong. |
As discussed, let's look at generating the pem file once and store it as an artifact that can be used for the purpose of signing the SBOM. |
Created EF issue:https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/3835 |
Current signSBOM is asking PRM format to generate the Key pair for https://github.com/adoptium/temurin-build/blob/master/cyclonedx-lib/sign_src/TemurinSignSBOM.java#L118.
For gpg sign with
gpg --armor --export
the private and public key file can be exported as gpg armor/text format, which is similar to PEM but is NOT PEM.To signSBOM with gpg we need either
Feels like the first option is easy if gpgsm is installed. @andrew-m-leonard suggestion?
The text was updated successfully, but these errors were encountered: