OAuth PKCS p12 私钥的 Google API 密码是什么? [英] What is the Google API password for the OAuth PKCS p12 private key?

查看:33
本文介绍了OAuth PKCS p12 私钥的 Google API 密码是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google API 设置提供了一种使用服务帐户创建项目的方法.

The Google API setup provides a way to create a project with a service account.

我将私钥下载为 PKCS #12 p12 文件.

I download the private key as a PKCS #12 p12 file.

在哪里可以找到这个文件的密码?

Where do I find the password for this file?

推荐答案

答案:notasecret

https://developers.google.com/console/help/#service_accounts

在服务器到服务器交互中请求 OAuth 2.0 访问令牌时,您的应用程序需要私钥.Google 不会保留此私钥的副本,此屏幕是获取此特定私钥的唯一位置.当您单击下载私钥"按钮时,PKCS #12 格式的私钥将下载到您的本地计算机.如屏幕所示,您必须安全地存储此密钥.

Your application needs the private key when requesting an OAuth 2.0 access token in server-to-server interactions. Google does not keep a copy of this private key, and this screen is the only place to obtain this particular private key. When you click the "Download private key" button, the PKCS #12 formatted private key is downloaded to your local machine. As the screen indicates, you must securely store this key.

下载的私钥的名称是密钥的指纹.

The name of the downloaded private key is the key's thumbprint.

在您的计算机上检查密钥或在您的应用程序中使用密钥时,您需要提供密码 notasecret.请注意,虽然 Google 颁发的所有私钥的密码都相同(notasecret),但每个密钥在密码学上都是唯一的.

When inspecting the key on your computer, or using the key in your application, you will need to provide the password notasecret. Please note that while the password for all Google-issued private keys is the same (notasecret), each key is cryptographically unique.

这篇关于OAuth PKCS p12 私钥的 Google API 密码是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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