Let’s Encrypt Wildcard certificate how to

Org post see here

 

https://community.letsencrypt.org/t/getting-wildcard-certificates-with-certbot/56285

Reqeuirement access to dns records of the domain

 

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto

./certbot-auto certonly –manual -d *.domain.example -d example.domain –preferred-challenges dns-01 –server https://acme-v02.api.letsencrypt.org/directory

You will be prompted to add two txt records to your dns server, you should be able to do this.

 

that´s all

 

 

Can’t locate Debian/AdduserCommon.pm in @INC (you may need to install the Debian::AdduserCommon module)

Ubuntu 16.04 is sometimes wtf.

How to escape this crazy error?

 

Preconfiguring packages …
Setting up systemd (229-4ubuntu21.1) …
Can’t locate Debian/AdduserCommon.pm in @INC (you may need to install the Debian::AdduserCommon module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/sbin/addgroup line 34.
BEGIN failed–compilation aborted at /usr/sbin/addgroup line 34.
dpkg: error processing package systemd (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Use apt-file search AdduserCommon.pm on another Ubuntu VM. APT-File install separately on the maschine. So you can look which packet the file belongs to.

 

apt-file search AdduserCommon.pm
adduser: /usr/share/perl5/Debian/AdduserCommon.pm

now we reinstall the package adduser

apt-get –reinstall install adduser

Antoher way is copy the whole folder /usr/share/perl5/ from the working vm to the broken vm.