Docebo-设置OAuth JWT承载授权类型-公钥无效 [英] Docebo - Setting up OAuth JWT Bearer grant type - Public key is invalid

查看:80
本文介绍了Docebo-设置OAuth JWT承载授权类型-公钥无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在 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:

  1. Base-64编码的X.509(.CER)
  2. 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中

推荐答案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆