Uacme: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
mNo edit summary
→‎Renew a certificate: Remove all created files that are no longer needed
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Renew a certificate =
= Renew a certificate =


Copy over the value for <code>key_auth</code> to _acme-challenge TXT record.
For dns-01 challenge, copy over the value for <code>key_auth</code> to _acme-challenge TXT record.


<source lang="bash">
For http-01 challenge, create a folder .well-known/acme-challenge from the document root, and create a file with the name from the value for <code>token</code>, and put in the value of <code>key_auth</code> inside.
 
<syntaxhighlight lang="bash">
# uacme -v issue kumcabq.org *.kumcabq.org
# uacme -v issue kumcabq.org *.kumcabq.org
</source>
</syntaxhighlight>
 
 
= Remove all created files that are no longer needed =
 
This does not delete .well-known/acme-challenge folders.
 
<syntaxhighlight lang="bash">
# find /srv/www/ -type f -path '*/.well-known/acme-challenge/*' 2>/dev/null > files_and_folders
# rm $(cat files_and_folders)
</syntaxhighlight>

Latest revision as of 22:39, 11 February 2024

Renew a certificate

For dns-01 challenge, copy over the value for key_auth to _acme-challenge TXT record.

For http-01 challenge, create a folder .well-known/acme-challenge from the document root, and create a file with the name from the value for token, and put in the value of key_auth inside.

# uacme -v issue kumcabq.org *.kumcabq.org


Remove all created files that are no longer needed

This does not delete .well-known/acme-challenge folders.

# find /srv/www/ -type f -path '*/.well-known/acme-challenge/*' 2>/dev/null > files_and_folders
# rm $(cat files_and_folders)