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 revision
Previous revision
linux:certbot_cheatsheet [2022/06/30 09:18] – created dodgerlinux:certbot_cheatsheet [2023/02/27 09:13] (current) 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>
 +
 +===== Add a domain to the chain (expand) =====
 +
 +<code bash>
 +certbot --expand -d ciberterminal.net,site2.ciberterminal.net,NEWSITE.ciberterminal.net
 +</code>
 +
 +
  
 ===== Delete a certificate ===== ===== Delete a certificate =====
linux/certbot_cheatsheet.1656580731.txt.gz · Last modified: 2022/06/30 09:18 by dodger