google-chrome - 我可以使用Web App的私钥证书来签署JWT吗?

标签 google-chrome push-notification google-oauth

我正在为 Chrome 浏览器开发推送通知服务器。在 Google Cloud Console 上,我已将我的应用程序注册为 Web 应用程序并下载了私钥证书。我可以使用此证书来签署 JWT 请求吗?

最佳答案

可以,但出于多种目的共享私钥通常不是一个好主意。

来自 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.

关于google-chrome - 我可以使用Web App的私钥证书来签署JWT吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20448949/

相关文章:

android - GMail API 在 UserRecoverableAuthUIException 之前授予权限

css - 为什么我的溢出省略号在 Chrome 中被截断了?

node.js - Electron chrome和node的setInterval实现区别

ios - 从通知中心删除单个远程通知

android - 世博会推送通知中的警报和声音不起作用

firebase - Google 登录可在开发版本中工作,但不能在预览版本中工作

c# - 如何配置对 YouTube 凭据进行身份验证的网站以供控制台应用程序使用?

google-chrome - Chrome 80 : Pause script execution (F8) does not work when DevTools is not focused

css - 模糊的线性渐变在 chrome 中停止

javascript - 使用 ajax/setInterval 伪造推送通知?