Public key format #162
ssh-keygenBased on the doc, when I generate the key pair by ssh-keygen -t rsa -b 4096 -m pemMy private key looks like My public key looks like My opal-server can be secured correctly. The doc also mentions this.
Above method is using PKCS#1. opensslNow, I try to generate a key pair by openssl. Here is some info regarding openssl. # generate a private key
openssl genrsa -out=private-key.pem 4096
# generate corresponding public key
openssl rsa -in=private-key.pem -outform=PEM -pubout -out=public-key.pemThis time my private key looks like My public key looks like However, somehow opal-server does not support this way. Because when I try to get a opal-client JWT token, it returns
Does opal-server only supports this following format for public key? Another question, besides PKCS#1, does opal-server support PKCS#8 which can be generated by this way. Thanks! |
Replies: 1 comment
|
You need They are both of this enum type: EncryptionKeyFormat. We might be able to easily add more types to this enum, depending if they are supported by the python cryptography library, which we use in our casting method. |
You need
OPAL_AUTH_PUBLIC_KEY_FORMATandOPAL_AUTH_PRIVATE_KEY_FORMATdefined here (public) and here (private).They are both of this enum type: EncryptionKeyFormat.
We might be able to easily add more types to this enum, depending if they are supported by the python cryptography library, which we use in our casting method.