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

fix/optimize-convert-cert-buffer-to-pem #250

Merged
merged 1 commit into from
Aug 14, 2022

Conversation

MasterKale
Copy link
Owner

I peeked at convertCertBufferToPEM() for the first time in a while, and it felt silly to convert from base64url -> Buffer -> base64, when I already had a base64url string that was just a few string replacements away from becoming that base64 string.

Now it'll keep the base64url a string and do the massaging to get to a base64 string, and only resort to .toString('base64') when the method receives a Buffer.

@MasterKale MasterKale merged commit 8aa4cc6 into master Aug 14, 2022
@MasterKale MasterKale deleted the fix/optimize-convert-cert-buffer-to-pem branch August 14, 2022 19:10
@MasterKale MasterKale added this to the v5.4.4 milestone Aug 15, 2022
@MasterKale MasterKale added the package:server @simplewebauthn/server label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:server @simplewebauthn/server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant