ViciBox v.9.0.0 missing certbot configuration files

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

ViciBox v.9.0.0 missing certbot configuration files

Postby Kumba » Fri Oct 11, 2019 6:13 pm

Apparently OpenSuSE has broken the certbot package and installs it without the correct configuration files. I've had reports that just copying over the config files from ViciBox v.8.1 will fix it. So here are those config files and some instructions to install them:

1) cd /root
2) wget http://download.vicidial.com/vicibox/vi ... nfs.tar.xz
3) cd /etc
4) tar -xf /root/vicibox9-certbotconfs.tar.xz
5) ln -s certbot letsencrypt

In theory that should fully restore certbot functionality for the vicibox-certbot script. If you test this please give feed back here like it worked or it didn't work and any error messages you found. If it works just fine it will be rolled into ViciBox v.9.0.1
Kumba
 
Posts: 814
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby Kumba » Mon Oct 14, 2019 5:41 pm

Unless anyone posts otherwise I will include these config files in ViciBox v.9.0.1 and release that this Friday.
Kumba
 
Posts: 814
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby alo » Thu Dec 26, 2019 12:48 am

Using Vicibox 9.0.1 I am having trouble running Certbot.

VM22vb9:~ # vicibox-certbot
Certbot binary not installed at /usr/bin/certbot

I did try the above although I assumed that was already added to 9.0.1

Any Idea what I am doing wrong?
alo
 
Posts: 139
Joined: Wed Jun 20, 2012 10:21 am

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby alo » Fri Dec 27, 2019 12:21 pm

I think there is supposed to be a file at /usr/bin/certbot.

I tried taking one from vicibox8 and it let me run the script but gave me others errors.

Anyone know If I missed something here?
alo
 
Posts: 139
Joined: Wed Jun 20, 2012 10:21 am

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby lutrera » Sun Dec 29, 2019 9:43 am

Hello team,

Just installed v.9.0.1 and the command vicibox-certbot is still not working. I am getting the following error:

/var/log # vicibox-certbot
Certbot binary not installed at /usr/bin/certbot

Has this been corrected on this version? Is there a missing step?

Thanks in advance for all your help.
lutrera
 
Posts: 6
Joined: Fri Jul 19, 2013 9:03 pm

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby alo » Mon Dec 30, 2019 9:58 am

I am still getting that same error too.
alo
 
Posts: 139
Joined: Wed Jun 20, 2012 10:21 am

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby alo » Thu Jan 02, 2020 10:47 am

Hey Luterra, did you happen to find a solution here? Still looking myself...
alo
 
Posts: 139
Joined: Wed Jun 20, 2012 10:21 am

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby lutrera » Fri Jan 03, 2020 5:44 pm

alo wrote:Hey Luterra, did you happen to find a solution here? Still looking myself...


Not yet, Still looking to resolved. If I find a solution I will post it here.
lutrera
 
Posts: 6
Joined: Fri Jul 19, 2013 9:03 pm

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby alo » Tue Jan 07, 2020 10:46 am

I wonder if other people are seeing this error too or if we are just doing something wrong.
alo
 
Posts: 139
Joined: Wed Jun 20, 2012 10:21 am

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby Acidshock » Sun Jan 12, 2020 9:54 pm

run

Code: Select all
zypper in python3-certbot


That will install the certbot binary.
VERSION: 2.14-698a | BUILD: 190207-2301 | Asterisk:13.24.1-vici | Vicibox 8.1.2
Acidshock
 
Posts: 390
Joined: Wed Mar 03, 2010 3:19 pm

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby Acidshock » Sun Jan 12, 2020 11:08 pm

Just realized that client isnt ACME2 compatible. I recommend you do the following:

run this:

Code: Select all
zypper in socat
wget -O -  https://get.acme.sh | sh



Then create this script and run it. Syntax is -e some@email.com -d vicidial.testdomain.com

Code: Select all
#!/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"

VERSION: 2.14-698a | BUILD: 190207-2301 | Asterisk:13.24.1-vici | Vicibox 8.1.2
Acidshock
 
Posts: 390
Joined: Wed Mar 03, 2010 3:19 pm

Re: ViciBox v.9.0.0 missing certbot configuration files

Postby IanGP » Mon Feb 17, 2020 11:06 am

Hi Acidshock,
Thanks for this.

Getting most of the way there, but the script doesn't create fullchain.pem.

Any ideas?

Thanks
IanGP
IanGP
 
Posts: 16
Joined: Thu Jul 28, 2016 1:27 am


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron