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

feat(x509): Update certificate creation API #2197

Conversation

berendsliedrecht
Copy link
Contributor

@berendsliedrecht berendsliedrecht commented Feb 18, 2025

Update the X.509 certificate creation api to not only create self-signed certs anymore.

… via the `agent.x509.createCertificate` API where the `subjectPublicKey` is not supplied or equal to the `authorityKey`

- allow to create more complex X.509 certificates

Signed-off-by: Berend Sliedrecht <[email protected]>
@berendsliedrecht berendsliedrecht requested a review from a team as a code owner February 18, 2025 10:38
Copy link

changeset-bot bot commented Feb 18, 2025

🦋 Changeset detected

Latest commit: ba08279

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 15 packages
Name Type
@credo-ts/core Minor
@credo-ts/action-menu Minor
@credo-ts/anoncreds Minor
@credo-ts/askar Minor
@credo-ts/bbs-signatures Minor
@credo-ts/cheqd Minor
@credo-ts/didcomm Minor
@credo-ts/drpc Minor
@credo-ts/indy-sdk-to-askar-migration Minor
@credo-ts/indy-vdr Minor
@credo-ts/node Minor
@credo-ts/openid4vc Minor
@credo-ts/question-answer Minor
@credo-ts/react-native Minor
@credo-ts/tenants Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -228,6 +311,11 @@ export class X509Certificate {
return certificate.subject
}

public get issuer() {
const certificate = new x509.X509Certificate(this.rawCertificate)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we store an instance of the x509 lib cert in this class? I'm not sure on the overhead of parsing

… via the `agent.x509.createCertificate` API where the `subjectPublicKey` is not supplied or equal to the `authorityKey`

- allow to create more complex X.509 certificates

Signed-off-by: Berend Sliedrecht <[email protected]>
@berendsliedrecht berendsliedrecht merged commit dca4fdf into openwallet-foundation:main Feb 18, 2025
16 checks passed
@berendsliedrecht berendsliedrecht deleted the update-x509-interface branch February 18, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants