gpt4 book ai didi

kubernetes - 证书管理器 letsencrypt 颁发无效证书

转载 作者:行者123 更新时间:2023-12-05 08:47:30 24 4
gpt4 key购买 nike

我关注了this tutorial使用 NGINX Ingrss Controller 和带有 letsencrypt 的证书管理器为基本应用程序提供服务。

我可以访问该网站,但 SSL 证书已损坏,显示 Issued By: (STAGING) Artificial Apricot R3

这是我的 ClusterIssuer:

apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-issuer
namespace: cert-manager
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: my-email@example.com
privateKeySecretRef:
name: letsencrypt-issuer
solvers:
- http01:
ingress:
class: nginx

Ingress:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-app-ingress-dev
namespace: my-app
annotations:
cert-manager.io/cluster-issuer: letsencrypt-issuer
spec:
tls:
- secretName: echo-tls
hosts:
- my-app.example.com
rules:
- host: my-app.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: my-app-dev
port:
number: 80

最佳答案

LetsEncrypt staging 用于测试,不会颁发浏览器信任的证书。请改用生产 LE URL https://acme-v02.api.letsencrypt.org/directory

关于kubernetes - 证书管理器 letsencrypt 颁发无效证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67574059/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com