derecalliance / protobufs

The format of DeRec messages.
Apache License 2.0
2 stars 0 forks source link

Meaning of PEM encoded #5

Open jorabin opened 8 months ago

jorabin commented 8 months ago

is this just base 64? How should one create a PEM encoded public key? Is the SHA-384 digest a digest of the PEM encoding?

Some code examples would be very helpful. Illustrating how to use KeyPairGenerator for encryption and signature.

Rohit agreed to do this, I can't allocate the issue to him as I don't have permission.

lbaird commented 8 months ago

RFC 7468. Check that this is the latest version. 1421 is the older version. We should use the latest version.

jorabin commented 7 months ago

The following discusses PEM encoded keys, something similar would help https://www.baeldung.com/java-read-pem-file-keys

lbaird commented 7 months ago

Example code such as that URL is great. There should be example code in the cryptography repo, similar to the code at that URL.

In the protobuf, it should be sufficient to say "PEM encoded" and give the RFC. So I think the protobufs are OK, and that the documentation in the cryptography library should be updated with such examples, if it isn't already.

ehanoc commented 3 months ago

@lbaird @rsinha @jorabin I'll create an issue in the cryptography repo to create example compliant with RFC-7468