小编use*_*556的帖子

openssl 提供 Kubernetes Ingress Controller 假证书

我已经配置了 ssl 证书,如果我访问https://<domain>.com,我会看到我的证书已成功配置,但是当我尝试通过以下命令检查证书时

openssl s_client -connect <domain>.com:443 | openssl x509 -noout -subject -issuer
Run Code Online (Sandbox Code Playgroud)

我正进入(状态Kubernetes Ingress Controller Fake Certificate

我的 ingres 配置是:

  annotations:
    nginx.ingress.kubernetes.io/ssl-redirect: 'true'
    nginx.ingress.kubernetes.io/from-to-www-redirect: 'true'
  name: nginx-echo
spec:
  tls:
    - hosts:
      - domain.com
      secretName: domain.com
  rules:
    - host: domain.com
      http:
        paths:
        - path: /
          pathType: Prefix
          backend:
            service:
                name: website-lorem
                port:
                    number: 80
Run Code Online (Sandbox Code Playgroud)

with 命令给出了相同的假证书: openssl s_client -connect <domain>.com:443 -servername <domain> | openssl x509 -noout -subject -issuer

日志:

 6 flags.go:205] Watching for Ingress class: nginx
W1029 …
Run Code Online (Sandbox Code Playgroud)

ssl kubernetes kubernetes-ingress

4
推荐指数
1
解决办法
7934
查看次数

标签 统计

kubernetes ×1

kubernetes-ingress ×1

ssl ×1