I am developing Push Notification Server for Chrome browser. On Google Cloud Console I have registered my application as web application and downloaded the private key Certificate. Can I use this certificate to sign the JWT request?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can, but it's generally not a good idea to share the private key for multiple purposes.
From Microsoft (http://technet.microsoft.com/en-us/library/hh341466.aspx):
It is a public key infrastructure (PKI) best practice to not share the private key for >multiple purposes. Therefore, do not use the service communication certificate that you >installed on the federation server as the token-signing certificate.
回答2:
Yes I was able to sign the JWT message using Private Key Certificate. And I also got the AccessToken back from the server