[Bug]: renew not working with reverse-proxy and mtls=false
Les mainteneurs répondent en général sous 1 jour
@hslatman y travaille déjà.
Depuis le 13/1/2025.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Steps to Reproduce
I setup a certificate server (step 0.28.2 on ubuntu 24.04.1) and a nginx reverse proxy.
Issuing certificate works fine from step service or nginx.
But renewal does not work when using nginx ca-url (port 443). It works if accessing directly step service (port 8443).
"mtls=false" was used. "--mtls false" as described in docs did not work with step-cli for me.
It does not seem there is any debug/verbose option to check where getting invalid character which is probably the start of a html page.
From cert-renewer systemd unit
ExecStart=/usr/bin/step ca renew --ca-url=https://certs.internal --root=/usr/share/ca-certificates/stepca-internal-roots.pem --mtls false --force ${CERT_LOCATION} ${KEY_LOCATION} (code=exited, status=1/FAILURE)
# results in
Jan 08 21:50:43 myhost.internal step[3935]: too many positional arguments were provided in 'step ca renew <crt-file> <key-file>'
Manual testing
root@myhost:~# /usr/bin/step ca renew --ca-url=https://certs.internal --root=/usr/share/ca-certificates/stepca-internal-roots.pem --mtls false /etc/ssl/certs/myhost.crt /etc/ssl/private/myhost.key
too many positional arguments were provided in 'step ca renew <crt-file> <key-file>'
root@myhost:~# /usr/bin/step ca renew --ca-url=https://certs.internal --root=/usr/share/ca-certificates/stepca-internal-roots.pem /etc/ssl/certs/myhost.crt /etc/ssl/private/myhost.key
error renewing certificate: failed decoding CA error response: invalid character '<' looking for beginning of value
root@myhost:~# /usr/bin/step ca renew --mtls false --ca-url=https://certs.internal --root=/usr/share/ca-certificates/stepca-internal-roots.pem /etc/ssl/certs/myhost.crt /etc/ssl/private/myhost.key
too many positional arguments were provided in 'step ca renew <crt-file> <key-file>'
root@myhost:~# /usr/bin/step ca renew --ca-url=https://certs.internal --root=/usr/share/ca-certificates/stepca-internal-roots.pem /etc/ssl/certs/myhost.crt /etc/ssl/private/myhost.key
error renewing certificate: failed decoding CA error response: invalid character '<' looking for beginning of value
Thanks
Your Environment
- OS - Ubuntu 24.04.1
stepCLI Version - 0.28.2
Expected Behavior
Renewal to work
Actual Behavior
Renewal fails
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).
- Langage dominant
- Go
- Étoiles
- 4.3k
- Forks
- 320
- Merge moyen
- 2 j 3 h
- PR mergées (30 j)
- 11
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de smallstep/cli
-
[Bug]: `Match exec "step ssh check-host %h"` causes SSH connections through ProxyJump to hangOuvertebug needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement needs triage
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement needs triage
Difficulté 3/5 1-2 jours Accessibilité débutants 57/100
smallstep/cli#1713 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
build s390x and riscv64 binariesOuverteenhancement needs triage
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
smallstep/cli#1710 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline editsPeut-être pris @vulragrag-star l’a pris il y a 51 jours. Ouvertebug needs triage
Difficulté 4/5 3-5 jours Accessibilité débutants 20/100
smallstep/cli#1705 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de smallstep/cli
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
adrianbrad/queue#92 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
agent-ready area:skills
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
jmbarzee/temporal-architect#444 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement needs:sonnet ready-for-agent
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour