Skip to content

Commit 179a78b

Browse files
committed
readme
1 parent c6eb8de commit 179a78b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ See all sites and documentroot for them (better then apache2ctl -S)
4444
a2conf --vhfmt '{vhostargs} {servername} {documentroot}'
4545
~~~
4646

47+
If you created/deleted apache vhosts, but have orphaned LE certificates:
48+
~~~
49+
a2conf --cmd sslcertificatefile| cut -f 2 -d" " | sort | uniq > /tmp/apache-certs.txt
50+
find /etc/letsencrypt/live/ -name fullchain.pem|sort > /tmp/le-certs.txt
51+
diff /tmp/apache-certs.txt /tmp/le-certs.txt
52+
~~~
53+
4754
Which way is easier and error-prone to request certificate?
4855
~~~
4956
a2certbot --create -d example.com --aliases

bin/a2certbotssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def main():
110110
role = get_role()
111111
if role == 'wrapper':
112112

113-
if not args.domain:
113+
if not args.domain and not args.altnames:
114114
print("Need domain(s) (-d)")
115115
return
116116

0 commit comments

Comments
 (0)