如何将Digicert SSL证书添加到GCP中的Kubernetes Secret?
我有一个Digicert SSL证书,我想将其安装在GCP Secrets中,并将其引用到Ingress资源之一。目前有四个文件
privatekey.pem
{domain-name.crt}
DigiCertca.crt
Trustedroot.crt
I have a digicert SSL cert that I want to install in GCP secrets and reference it to one of the ingress resources. Currently have four files
privatekey.pem
{domain-name.crt}
DigiCertca.crt
Trustedroot.crt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如@blender Fox在评论中发布的那样,在集群中,您可以导入已经发布的证书。
使用
- From-File
或- 从env-file
从一个或多个文件中生成秘密。该文件必须采用明文格式;它的扩展是不重要的。命令状态:
将 path_to_file1 和 path_to_file2 更改为适当的 .pem 和 .crt 文件,就像@blender Fox所指的一样。
或者
如果他们在目录中;
GCP
As @Blender Fox posted in the comment, in the cluster, you can import already-issued certificates.
Use
--from-file
or--from-env-file
to generate a Secret from one or more files. The file must be in plaintext format; it is unimportant what extension it has.The command states:
Change the PATH_TO_FILE1 and PATH_TO_FILE2 in your case to the appropriate .pem and .crt files, like @Blender Fox indicated.
Or
If they are in a directory;
How to build secrets from files is described in GCP documentation.