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
Idea is to setup intermediate CA using stepca on openshift cluster. So I have got certificate signed from our root microsoft PKI server. Everything works fine, except the ACME provisioner. I can see it being listed via step ca provisioner list but when I try to reach on acme directory, I always receive 404 page not found.
step-ca Version -
step-ca-56597c9cc5-kt8ls:/home/step# step-ca version
Smallstep CA/0.28.0 (linux/amd64)
Release Date: 2024-10-30 00:21 UTC
Expected Behavior
Able to reach the directory url of acme i.e https://domain.com/acme/<acme_provisioner>/directory
Actual Behavior
When I try to reach directory url, I receive the 404 page not found
Additional Context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
Update: It worked after I have added the db config to ca.json file.
After so much struggle I figured this out that step ca add command is not adding the DB config to ca.json when I try to add acme provisioner.
How I figured out ? I was trying to create a new instance with step ca init where I passed --no-db along with acme provisioner and it threw out an error saying acme needs DB.
Then I have updated my ca config with db and then it started working.
What can improve ? Logging should be improved while adding acme provisioner to existing config which doesn't have DB configured or it should add a DB config along with provisioner.
Steps to Reproduce
Idea is to setup intermediate CA using stepca on openshift cluster. So I have got certificate signed from our root microsoft PKI server. Everything works fine, except the ACME provisioner. I can see it being listed via
step ca provisioner list
but when I try to reach on acme directory, I always receive 404 page not found.Deployment file is below
Configmap for ca.json file
All my certs and keys are stored as secrets and mounted.
step-ca-56597c9cc5-kt8ls:/home/step# curl -k https://localhost:443/health
{"status":"ok"}
step-ca-56597c9cc5-kt8ls:/home/step# curl -k https://localhost:443/acme/acme/directory
404 page not found
step-ca-56597c9cc5-kt8ls:/home/step# curl --cacert /home/step/certs/root_ca.crt https://stepca.mydomain.corp/health
{"status":"ok"}
step-ca-56597c9cc5-kt8ls:/home/step# curl --cacert /home/step/certs/root_ca.crt https://stepca.mydomain.corp/acme/acme/directory
404 page not found
step-ca-56597c9cc5-kt8ls:/home/step# step ca provisioner list --ca-url https://stepca.mydomain.corp
[
{
"type": "JWK",
"name": "admin",
"key": {
"use": "sig",
"kty": "EC",
"kid": "kid",
"crv": "P-256",
"alg": "ES256",
"x": "N7h0_LZ0mx6DDRLm1uHQEx15bNrX5sta1WAiBkcI8vs",
"y": "ognNSi-E8GEc44eMWvFETEZy5ay8SC_UQzxvIqMngF8"
},
"encryptedKey": "encrypted key"
},
{
"type": "ACME",
"name": "acme",
"claims": {
"maxTLSCertDuration": "24h0m0s"
}
}
]
step-ca-56597c9cc5-kt8ls:/home/step# step ca certificate --provisioner acme example.com example.crt example.key --ca-url https://stepca.mydomain.corp
✔ Provisioner: acme (ACME)
b = 404 page not found
error initializing ACME client with server https://stepca.apps.ocp-poc.core.dev.infinity.airbus.corp/acme/acme/directory: 404 page not found
Note: I am able to create certificate with 'jwk' type with no issue.
Your Environment
OS -
step-ca-56597c9cc5-kt8ls:/home/step# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.20.3
PRETTY_NAME="Alpine Linux v3.20"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
step-ca
Version -step-ca-56597c9cc5-kt8ls:/home/step# step-ca version
Smallstep CA/0.28.0 (linux/amd64)
Release Date: 2024-10-30 00:21 UTC
Expected Behavior
Able to reach the directory url of acme i.e https://domain.com/acme/<acme_provisioner>/directory
Actual Behavior
When I try to reach directory url, I receive the 404 page not found
Additional Context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: