<div dir="ltr">Thanks for the write up<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div style="font-family:sans-serif;font-size:13px"><p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small">Best Regards<u></u><u></u></p><p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small"><u></u> <u></u></p><div style="font-family:Arial,Helvetica,sans-serif;font-size:small"><p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><span>Emmanuel</span> Afang </span></b></p><p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><br></span></b></p><p class="MsoNormal"><span style="font-size:10pt;color:rgb(51,51,51)">Mobile </span><span style="font-size:10pt;color:rgb(36,64,97)">+2347084280332<br>Email:  <u><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a><a href="mailto:fang.emmanuel@gmail.com" target="_blank">fang.emmanuel@gmail.com</a></u></span></p><p class="MsoNormal"><span style="color:rgb(36,64,97);font-size:13.3333px">Skype: </span><u style="color:rgb(36,64,97);font-size:13.3333px"><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a>fang.emmanuel</u><br></p></div></div></div><div><br></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 16, 2019 at 12:06 AM Andy Clark <<a href="mailto:andyclark05251978@gmail.com">andyclark05251978@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>LetsEncrypt - sipwise with LTS but secure user portal<br></div><div><br></div><div>hope this helps someone who is trying to install valid cert on sipwise</div><div><br></div><div><a href="http://spce.mydomain.com" target="_blank">spce.mydomain.com</a></div><div>spce = hostname</div><div><a href="http://mydomain.com" target="_blank">mydomain.com</a> = your domain name</div><div><br></div><div>you might need to reboot after changing modifying the config.yml (I had to, also be sure to make a backup of it)</div><div><br></div><div><br></div><div>sudo apt update && sudo apt upgrade</div><div>sudo apt-get install git</div><div>sudo git clone <a href="https://github.com/letsencrypt/letsencrypt" target="_blank">https://github.com/letsencrypt/letsencrypt</a> /opt/letsencrypt</div><div>cd /opt/letsencrypt</div><div>/opt/letsencrypt/certbot-auto certonly --manual --preferred-challenges dns  --email <a href="mailto:admin@mydomain.com" target="_blank">admin@mydomain.com</a> --domains <a href="http://spce.mydomain.com" target="_blank">spce.mydomain.com</a></div><div>NOTE: follow the instructions on the screen</div><div><br></div><div>---manually renew---</div><div>/opt/letsencrypt/letsencrypt-auto renew</div><div><br></div><div>--- Don't use---</div><div>/opt/letsencrypt/certbot-auto certonly --manual --renew-by-default --preferred-challenges dns  --email <a href="mailto:admin@gofiber.com" target="_blank">admin@gofiber.com</a> --domains <a href="http://spce.mydomain.com" target="_blank">spce.mydomain.com</a></div><div>------------------</div><div><br></div><div>---sipwise certificate location---</div><div>edit config.yml and replace with the below lines</div><div>sslcertfile: /etc/letsencrypt/live/<a href="http://spce.mydomain.com/fullchain.pem" target="_blank">spce.mydomain.com/fullchain.pem</a></div><div>sslcertkeyfile: /etc/letsencrypt/live/<a href="http://spce.mydomain.com/privkey.pem" target="_blank">spce.mydomain.com/privkey.pem</a></div><div><br></div><div>don't change TLS cert on the config.yml or your phones will stop registering, i'm not sure why but if anyone can help me it would nice</div><div>------</div><div><br></div><div>---schedule renewal for sipwise---</div><div>/etc/ngcp-config/templates/etc/crontab.tt2 /etc/ngcp-config/templates/etc/crontab.customtt.tt2</div><div>vim /etc/ngcp-config/templates/etc/crontab.customtt.tt2</div><div>0 0 1 * * /opt/letsencrypt/letsencrypt-auto renew</div><div>0 0 1 * * cd /opt/letsencrypt && git pull</div><div><br></div><div>---check the renew config---</div><div>cat /etc/letsencrypt/renewal/spce.mydomain.com.conf</div><div><br></div><div>check certificate</div><div>/opt/letsencrypt/certbot-auto certificates</div><div><br></div><div><br></div><div>location of cert</div><div>cd /etc/letsencrypt/live/<a href="http://spce.mydomain.com/" target="_blank">spce.mydomain.com/</a></div><div><br></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" rel="noreferrer" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
</blockquote></div>