User Tools

Site Tools


linux:certbot_cheatsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
linux:certbot_cheatsheet [2022/06/30 09:18] – created dodgerlinux:certbot_cheatsheet [2022/06/30 09:19] dodger
Line 6: Line 6:
 certbot certificates certbot certificates
 </code> </code>
 +
 +One liner of the dead to show all the certificates an file identifier:
 +<code bash>
 +/usr/bin/certbot certificates | egrep "Name|Domains" 2> /dev/null | while read LINE ; do [[ "${LINE}" =~ Certificate\ Name:\ (.*)$ ]] && CERTNAME=${BASH_REMATCH[1]} ; [[ "${LINE}" =~ Domains:\ (.*)$ ]]
 + && DOMAIN_LIST=${BASH_REMATCH[1]} ; if [[ "${DOMAIN_LIST}" ]] ; then echo "####### ${CERTNAME} ->" ; for i in  ${DOMAIN_LIST} ; do echo ${i} ; done | sort  ; DOMAIN_LIST=""; CERTNAME="" ; fi ;  done
 +</code>
 +
  
 ===== Delete a certificate ===== ===== Delete a certificate =====
linux/certbot_cheatsheet.txt · Last modified: 2023/02/27 09:13 by dodger