-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
security/acme-client: import attempted from wrong path #4549
Comments
I'm on the 24.7.12 version and I'm having the same issue on the automation. |
This assumption is wrong. The "cert-home" directory is just the working directory of the underlying acme.sh tool. The Acme Client plugin does NOT import certificates from this directory. As you can see from the System Log, it actually tries to import certificates from the "certs" directory instead. However, there is something wrong with your Acme Client. Maybe the upgrade to Acme Client 4.0.0 has failed (one year ago). 😢 Please provide the output of the following commands:
|
Here it is: the ls returned nothing... Although the certificates exist on my system and the renewal worked, just the scp to servers and my HA FW failed. |
@imightbelosthere This is unrelated to the original report. Please report a new issue. |
|
@backerman Thanks. So the files are actually available in the filesystem. 🤔 Could you try to re-import the certificate? There's a button in |
The reimport button logs:
And nothing else, even if I set logging to the most verbose option available. |
So I guess... it's working now? 😕 Are you using the default filesystem or ZFS? You could try to run a fsck (on the default filesystem) or a scrub (on ZFS) to find filesystem defects. Previous filesystem errors may have already been resolved, fsck runs automatically on reboot if the filesystem is marked as "dirty". |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
When a certificate challenge is passed, the certificate/key/chain/etc. are stored in
/var/etc/acme-client/cert-home/
(certificate ID)/
(SAN)/
, and the host's certificate and key files begin with the SAN. The import command attempts to find them in/var/etc/acme-client/cert-home/
(certificate ID)/
with filenames that don't contain the SAN, which fails.This functionality worked without issue in the 24.7 series.
To Reproduce
Steps to reproduce the behavior:
cert.pem
in the wrong directory as described.Expected behavior
The import command imports the certificate from the correct directory, and import is therefore successful.
Screenshots
If applicable, add screenshots to help explain your problem.
Relevant log files
System Log:
ACME Log:
Additional context
Add any other context about the problem here.
Environment
Software version used and hardware type if relevant.
e.g.:
OPNsense 25.1.1 (amd64).
os-acme-client 4.8
acme.sh 3.1.0
The text was updated successfully, but these errors were encountered: