jenkinsci / jenkinsci/credentials-plugin

[JENKINS-57845] provide configurator/databound setter for certificate credential (PKCS12 and so on)

Open
#836 1 comment 0 reactions 0 assignees View on GitHub
component:credentials-plugin imported-jira-issue jcasc-compatibility priority:minor resolution:unresolved
Dominant language
Java
Stars
134
Forks
258
Avg merge
48m
Merged PRs (30d)
1

Description

JCasC cannot easily configure UploadedKeyStoreSource as the expected input is a bytes array.

Users would like to configure the certificate via the same "upload" function that is provided by stapler when configured via JCasC

https://github.com/jenkinsci/credentials-plugin/blob/bddcf41ba3388cb54126e3f626b3deb7d65e3b53/src/main/java/com/cloudbees/plugins/credentials/impl/CertificateCredentialsImpl.java#L677

 

Workaround: "cat file.pkcs | base64"

---
Originally reported by casz, imported from: provide configurator/databound setter for certificate credential (PKCS12 and so on)


  • status: Open
  • priority: Minor
  • component(s): credentials-plugin
  • label(s): jcasc-compatibility
  • resolution: Unresolved
  • votes: 2
  • watchers: 7
  • imported: 2025-12-08

Raw content of original issue

JCasC cannot easily configure UploadedKeyStoreSource as the expected input is a bytes array.
Users would like to configure the certificate via the same "upload" function that is provided by stapler when configured via JCasC

https://github.com/jenkinsci/credentials-plugin/blob/bddcf41ba3388cb54126e3f626b3deb7d65e3b53/src/main/java/com/cloudbees/plugins/credentials/impl/CertificateCredentialsImpl.java#L677

 

Workaround: "cat file.pkcs | base64"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.