Replies: 1 comment 3 replies
-
Public KeyLooking at the reference implementation using PKCS#1 and PEM format for public keys exchange and identifier I think we might run into some issues with canonicalization, particularly for key fingerprinting/identifier. After some rudimentary testing it seems there are some variations in implementations of PEM formatting that can easily cause headaches. One option is to generate the key identifier using the DER format (binary) rather then PEM (ASCII), which seemingly gives consistent results across the board. Suggestion: PKCS#1 generated RSA keys encoded in the PEM format. Key identifier is deduced by hashing the DER formatted public key using SHA256. Example: RSA Private and Public Key generation using OpenSSL openssl genrsa -des3 -out private.pem 2048
openssl rsa -in private.pem -outform PEM -pubout -out public.pem
openssl rsa -in public.pem -pubin Output: RSA Public Key in PEM format
Example: Output Public Key Identifier using OpenSSL openssl rsa -in public.pem -pubin -outform der | openssl dgst -sha256 Output: Public Key Identifier
What are your thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
This thread is dedicated to the discussion of the specification and implementation details of the encrypted fields feature. A working draft of the specification can be found in #8.
Beta Was this translation helpful? Give feedback.
All reactions