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

wip: replace pem with pem-rfc7468 crate #52

Closed
wants to merge 1 commit into from
Closed

wip: replace pem with pem-rfc7468 crate #52

wants to merge 1 commit into from

Conversation

flihp
Copy link
Collaborator

@flihp flihp commented May 5, 2023

this will resolve #50 but I've left it as a draft because the CSRs it produces are padded with a stream of 'A's like so:

-----BEGIN CERTIFICATE REQUEST-----
MIHZMIGMAgEAMFkxCzAJBgNVBAYTAlVTMR8wHQYDVQQKDBZPeGlkZSBDb21wdXRl
ciBDb21wYW55MSkwJwYDVQQDDCAwWFYyOlBQUC1QUFBQUFBQOlJSUjpMTExXV1lZ
U1NTNjAqMAUGAytlcAMhAFhzsGg1Hh1KHIh/RZLENut5X4VLU6wFLqMaqW7wiED5
oAAwBQYDK2VwA0EAhfRVmnN50lqtNntw/8tQ2wOJdBW+pua0EjPJHLb/XYmPyjo1
ghQg5+Y9ZQqKlmOeufpkJ3dGF6VTSdvXWg5CAQAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
-----END CERTIFICATE REQUEST-----

I don't have time to figure out whether I've done something wrong, this is expected behavior (check rfc 7468), or it's something else / bug. It handles certs fine and is a drop-in replacement for the existing implementation (decodes certs created by opensl fine).

@flihp
Copy link
Collaborator Author

flihp commented May 5, 2023

Skimmed rfc 7468 for a few minutes and I can't find anything that would require padding out the base64 encoded data. §7 has an example pkcs#10 (CSR) object pem encoded and there isn't any padding like this. Next step is to dive into the pem-rfc7468 code to see where this is coming from.

@flihp flihp closed this Dec 28, 2023
@flihp flihp deleted the pem-rfc7468 branch December 28, 2023 00:24
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.

switch from pem crate to pem-rfc7468
1 participant