You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get step-issuer to use a self hosted CA to issue certificates for my Kubernetes cluster. However, when the issuer tries to obtain a certificate, it always fails with
The request lacked necessary authorization to be completed. Please see the certificate authority logs for more info.
On the CA side, there is a log entry with
authority.Authorize: authority.authorizeSign: provisioner not found or invalid audience (https://ca.example.com/1.0/sign)
As far as I can see, the provisioner is correct (see below). The audience also seems to be correct. The only thing I can think of is the /1.0/sign path that may be causing issues, but I don't know what I'm doing wrong.
CA version: 0.25.0
Step Issuer version: 0.8.0 (also tried to build an image from master which depends on github.com/smallstep/certificatesv0.25.0 instead of v0.24.2)
Full details below:
CA Details
The CA is running on a host with IP 192.168.1.254, listening on port 443. ca.example.com and hostname both resolve to 192.168.1.254
The issuer is running with the correct configuration and is ready to issue certificates. From what I can see, this means that both the kid and key password are set correctly, otherwise the issuer does not become ready.
A certificaterequest is created but it fails to obtain the certificate
$ kubectl get certificaterequest example-client-fvj6s -o yaml
status:
conditions:
- lastTransitionTime: "2023-11-03T12:25:25Z"
message: Certificate request has been approved by cert-manager.io
reason: cert-manager.io
status: "True"
type: Approved
- lastTransitionTime: "2023-11-03T12:25:26Z"
message: 'Failed to sign certificate request: The request lacked necessary authorization
to be completed. Please see the certificate authority logs for more info.'
reason: Failed
status: "False"
type: Ready
The CA logs an error
(...) level=warning (...) error="authority.Authorize: authority.authorizeSign: provisioner not found or invalid audience (https://ca.example.com/1.0/sign)" ott=(...) path=/sign (...) status=401
I'm trying to get
step-issuer
to use a self hosted CA to issue certificates for my Kubernetes cluster. However, when the issuer tries to obtain a certificate, it always fails withThe request lacked necessary authorization to be completed. Please see the certificate authority logs for more info.
On the CA side, there is a log entry with
authority.Authorize: authority.authorizeSign: provisioner not found or invalid audience (https://ca.example.com/1.0/sign)
As far as I can see, the provisioner is correct (see below). The audience also seems to be correct. The only thing I can think of is the
/1.0/sign
path that may be causing issues, but I don't know what I'm doing wrong.CA version: 0.25.0
Step Issuer version: 0.8.0 (also tried to build an image from
master
which depends ongithub.com/smallstep/certificates
v0.25.0
instead ofv0.24.2
)Full details below:
CA Details
The CA is running on a host with IP
192.168.1.254
, listening on port 443.ca.example.com
andhostname
both resolve to192.168.1.254
I have a
JWK
provisioner namedk8s
and I am able to issue certificates with this provisioner from another host.step-issuer details
step-issuer
is running on my kubernetes cluster and configured to use my internal CA.The issuer is running with the correct configuration and is ready to issue certificates. From what I can see, this means that both the
kid
and key password are set correctly, otherwise the issuer does not become ready.Creating a certificate
I then create a certificate in kubernetes
A
certificaterequest
is created but it fails to obtain the certificateThe CA logs an error
Decoding the token in
ott
shows the correctkid
Header
Payload
The text was updated successfully, but these errors were encountered: