Skip to content

feat: add support for PKI module to generate certificates#131

Merged
stklcode merged 1 commit into
mainfrom
feature/pki
Jul 18, 2026
Merged

feat: add support for PKI module to generate certificates#131
stklcode merged 1 commit into
mainfrom
feature/pki

Conversation

@stklcode

@stklcode stklcode commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Issue certificates, e.g. using

PkiResponse res = connector.pki().generateCertificateAndKey(
    "example-com",
    PkiRequest.builder()
        .withCommonName("test.example.com")
        .withAltNames("test2.example.com")
        .withIpSans("192.0.2.1")
        .withKeyFormat(PkiRequest.KeyFormat.PKCS8)
        .build()
);

String certPEM = pkiResponse.data().certificate();  // "-----BEGIN CERTIFICATE-----..."
String keyPEM  = pkiResponse.data().privateKey();   // "-----BEGIN PRIVATE KEY-----..."

Various features and fields were added in different versions of Vault, so we re-introduced version guards in the integration test cases.

@stklcode stklcode added this to the 2.0.0 milestone Jul 14, 2026
@stklcode stklcode self-assigned this Jul 14, 2026
stklcode added a commit that referenced this pull request Jul 15, 2026
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
stklcode added a commit that referenced this pull request Jul 15, 2026
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
@stklcode
stklcode force-pushed the feature/pki branch 3 times, most recently from bfe18a8 to 57362fb Compare July 17, 2026 15:58
stklcode added a commit that referenced this pull request Jul 17, 2026
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
stklcode added a commit that referenced this pull request Jul 17, 2026
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
stklcode added a commit that referenced this pull request Jul 17, 2026
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
stklcode added a commit that referenced this pull request Jul 17, 2026
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
stklcode added a commit that referenced this pull request Jul 17, 2026
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
stklcode added a commit that referenced this pull request Jul 17, 2026
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
stklcode added a commit that referenced this pull request Jul 18, 2026
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
* generate certificates and keys
* revoke certificates
* read CA and issuer certificates
@sonarqubecloud

Copy link
Copy Markdown

@stklcode stklcode changed the title feat: add support for PKI module to generate certificates (#131) feat: add support for PKI module to generate certificates Jul 18, 2026
@stklcode
stklcode marked this pull request as ready for review July 18, 2026 09:11
@stklcode
stklcode merged commit 660065b into main Jul 18, 2026
15 of 16 checks passed
@stklcode
stklcode deleted the feature/pki branch July 18, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant