Docebo-设置OAuth JWT承载授权类型-公钥无效 [英] Docebo - Setting up OAuth JWT Bearer grant type - Public key is invalid
问题描述
我试图在 Docebo中的>"API凭证"页面(具有JWT Bearer授予类型),并上传用于验证传入断言(JWT Bearer令牌)签名的公共密钥. Docebo显示一个错误,指出公钥无效(请参阅图像 1 ).
I tried to set up an OAuth 2.0 client on API Credentials page in Docebo with JWT Bearer grant type and upload a Public Key that is used to verify the signature of incoming assertion (JWT Bearer token). Docebo shows an error that Public Key is invalid (see an image 1 below).
我尝试了以下具有公共密钥的证书文件格式. Docebo不接受它们:
I tried the following certificate file formats with public keys. Docebo doesn't accept them:
- Base-64编码的X.509(.CER)
- DER编码的二进制X.509(.CER)
Docebo-API身份验证也不要指定文件格式.
Instructions from Docebo - APIs Authentication do not specify the file format too.
Docebo以哪种格式接受JWT Bearer授予类型的公钥?
In which format Docebo accepts a Public Key for JWT Bearer grant type?
推荐答案
Docebo接受PEM格式的公共密钥(X.509证书的Base-64编码公共密钥):
Docebo accepts public keys in PEM format (Base-64 encoded public key of X.509 certificate):
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMYfnvWtC8Id5bPKae5yXSxQTt
+Zpul6AnnZWfIdasdfsadfasdfasdfasdfasdfLKJKGCsRqMFDkrbeUjRrx8iL91
4/srnyf6sh9c8Zk04xEOpK1ypvBz+Ks4uZObtjnnitf0NBGdjMKxveTq+VE7BWUI
yQjtQ8mbDOsiLLvh7wIDAQAB
-----END PUBLIC KEY-----
要获取以base-64编码的X.509(.CER)的公共密钥,请使用以下命令:
To get a public key of a base-64 encoded X.509 (.CER) use the following command:
openssl x509 -pubkey -in certificate.cer -noout 1>PublicKey.pem
这篇关于Docebo-设置OAuth JWT承载授权类型-公钥无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!