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

Create new x509 templates #77

Merged
merged 1 commit into from
May 29, 2019
Merged

Conversation

julianedwards
Copy link

@julianedwards julianedwards commented May 29, 2019

Hello,

I was doing some testing on a package I wrote that uses certstrap and noticed that when I use certain pkix package functions (CreateCertificateAuthority, CreateCertificateSigningRequest, etc.) data is persisted due to the use of a global variable as the certificate template. As far as I can tell, there is no need to presist data once a certificate is created and it causes a bug when I want to create a new certificate (if I omit a field that was previously filled in, the field from the last certificate will not get overwritten and persists with the new certificate).

Hope this change is helpful!

Julian

@csstaub
Copy link
Contributor

csstaub commented May 29, 2019

I agree this is a nicer way to handle it. Thanks for the contribution @julianedwards!

@csstaub csstaub merged commit 8e4fa72 into square:master May 29, 2019
@julianedwards julianedwards deleted the newtemplates branch May 29, 2019 17:56
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.

None yet

2 participants