79323081

Date: 2025-01-02 07:55:37
Score: 1.5
Natty:
Report link

I found a post on Apple Developer CryptoKit to create JWT, which explains clearly how to decode the private key produced by openssl. Just as @dave_thompson_085's comments:

PKCS8 format for private keys, which contains both an algorithm identifier with optional parameters (here ed25519) PLUS the algoirthm-dependent key data

The point is we need to extract only the private key bytes after dumpasn1 the data!

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @dave_thompson_085's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: stephen