Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: vicidial.lanube.com.do
I ran this command: -e myemail@gmail.com -d vicididial.lanube.com.do
#!/bin/bash
while getopts “:e:d:” options; do
case “{options}" in
e)
EMAIL={OPTARG} ;;
d)
DOMAIN={OPTARG} ;;
:) echo "Error: -{OPTARG} requires an argument.”; exit 1;;
*) echo “Internal error!” ; exit 1 ;;
esac
done
if [ -z “$EMAIL” ]
then
echo “Missing -e Email option!”
exit 1
fi
if [ -z “$DOMAIN” ]
then
echo “Missing -d Domain option!”
exit 1
fi
mkdir /etc/certbot/live/$DOMAIN
/root/.acme.sh/acme.sh --issue -d $DOMAIN -w /srv/www/htdocs/ --cert-file /etc/certbot/live/$DOMAIN/cert.pem --key-file /etc/certbot/live/$DOMAIN/privkey.pem --fullchain-file /etc/certbot/live/$DOMAIN/fullchain.pem --accountemail $EMAIL
sed -i “/SSLCertificateFile/c\\tSSLCertificateFile /etc/certbot/live/$DOMAIN/cert.pem” /etc/apache2/vhosts.d/1111-default-ssl.conf
sed -i “/SSLCertificateKeyFile/c\\tSSLCertificateKeyFile /etc/certbot/live/$DOMAIN/privkey.pem” /etc/apache2/vhosts.d/1111-default-ssl.conf
sed -i “/SSLCACertificateFile/c\\tSSLCACertificateFile /etc/certbot/live/$DOMAIN/fullchain.pem” /etc/apache2/vhosts.d/1111-default-ssl.conf
sed -i “/tlscertfile=/c\tlscertfile=/etc/certbot/live/$DOMAIN/cert.pem” /etc/asterisk/http.conf
sed -i “/tlsprivatekey=/c\tlsprivatekey=/etc/certbot/live/$DOMAIN/privkey.pem” /etc/asterisk/http.conf
/usr/sbin/rasterisk -x ‘module reload http’
/sbin/service apache2 restart
echo " If this is a telephony server you will need to modify the ‘Web Socket URL’"
echo " field for this server under the Admin --> Servers section. It will need to be"
echo " changed to :"
echo " wss://$DOMAIN:8089/ws"
echo
echo " You will also need to modify the ‘webRTC’ template under the Admin --> Templates"
echo " section. You want to change the following options under the "
echo " ‘Template Contents’ :"
echo " dtlscertfile=/etc/certbot/live/$DOMAIN/cert.pem"
echo " dtlsprivatekey=/etc/certbot/live/$DOMAIN/privkey.pem"
It produced this output:
the script doesn’t create fullchain.pem.
My web server is (include version): Apache2
The operating system my web server runs on is (include version):Opensuse 15.1 Vicidial
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know): yes
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot): certbot 1.0.0
I want to get help with this, thank you in advanced