Skip to content

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.

2 participants