Can I use the Private Key Certificate of Web App t

2019-07-20 18:21发布

问题:

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