Giter Club home page Giter Club logo

Comments (8)

pault28 avatar pault28 commented on August 17, 2024 3

Turns out that this is resolvable by doing below:

apiVersion: extensions/v1beta1
# apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/issuer: myprivate-ca
    cert-manager.io/issuer-kind: AWSPCAClusterIssuer
    cert-manager.io/issuer-group: awspca.cert-manager.io
    cert-manager.io/common-name: podinfo.infrastructure.com
  name: podinfo
  namespace: podinfo
spec:
  rules:
  - host: podinfo.infrastructure.com
    http:
      paths:
      - path: /
        backend:
          serviceName: podinfo
          servicePort: 80
  tls:
    - hosts:
      - podinfo.infrastructure.com
      secretName: podinfo10

Main change being adding the extra annotation cert-manager.io/common-name: podinfo.infrastructure.com
Happy for this to be closed perhaps with an example of generating cert this way.

from aws-privateca-issuer.

yurrriq avatar yurrriq commented on August 17, 2024 2

Just ran into the same issue and adding the cert-manager.io/common-name annotation fixed it. Thanks!

from aws-privateca-issuer.

jniebuhr avatar jniebuhr commented on August 17, 2024

Hi,
I haven't actually tested this before. Can you post both of the CertificateRequest CRs that are created?
I can probably check why it's not working from there.

from aws-privateca-issuer.

pault28 avatar pault28 commented on August 17, 2024

Not sure I know exactly what to post whilst keeping sensitive information off. It is easy to test it as documented here https://cert-manager.io/docs/usage/ingress/#how-it-works

from aws-privateca-issuer.

jniebuhr avatar jniebuhr commented on August 17, 2024

I'll have to try and reproduce it later this week then.

from aws-privateca-issuer.

pault28 avatar pault28 commented on August 17, 2024

@jniebuhr - any chance you got round to looking at this?

from aws-privateca-issuer.

paramsethi avatar paramsethi commented on August 17, 2024

Thanks for the update.

from aws-privateca-issuer.

nitrocode avatar nitrocode commented on August 17, 2024

I noticed that I need to add a commonName to the Certificate for it to avoid the CSR error

The cert-manager docs show that the commonName is deprecated so initially I didn't use it.

https://cert-manager.io/docs/usage/certificate/

  # The use of the common name field has been deprecated since 2000 and is
  # discouraged from being used.
  commonName: example.com

In teleport 9.x, you have to set .Values.highAvailability.certManager.addCommonName = true since it's false by default

And set the following usages in certificate.yaml

  usages:
  - server auth
  - client auth

from aws-privateca-issuer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.