Jump to content

A fresh guide to enable https and the let's encrypt certbot on FreeBSD


Recommended Posts

Posted (edited)

Hello.

I'm an happy FreeBSD user and I've just configured Emby to have https and the letsencrypt cert bot. I want to offer to every FreeBSD user this little and fresh tutorial to help them to do the same. That's because in the FreeBSD world there are a lot of users who help each other without limits. I get a lot of help everyday from them and I want to give something in return. So :
 

[root@marietto /home/emby/ssl]==> pkg install py311-certbot

[root@marietto /home/emby/ssl]==> cd /usr/local/etc/letsencrypt/live/ziomario.ns0.it/

1) [root@marietto /home/emby/ssl]==> openssl pkcs12 -export -out emby.p12 -inkey privkey.pem -in cert.pem -passout pass:mypass : this line did not work. I don't know why but when I used the emby.p12 file on the emby config,it didn't enable the https connections.

2) [root@marietto /home/emby/ssl]==> openssl pkcs12 -export -in cert.pem -inkey privkey.pem -certfile cert.pem -out emby.pfx : instead,this like worked,so if 1 does not work,use this.

[root@marietto /home/emby/ssl]==> chown emby:emby emby.pfx
[root@marietto /home/emby/ssl]==> cd ..
[root@marietto /home/emby]==> chown emby:emby ssl
[root@marietto /home/emby]==> nano /etc/periodic.conf

weekly_certbot_enable="YES"

 

That's all...

Edited by ziomario
syntax error.
  • Thanks 1
Posted

Hi, thanks for sharing.

Posted (edited)

Hello. I've installed emby server on Android 14 that I have installed on my raspberry pi 4. It is a custom ROM that I found here :

https://konstakang.com/devices/rpi4/AOSP14/

at this point I tried to use the emby.pfx file that I've generated for FreeBSD on the new installation of Android. The file has been accepted,but differently from what happened on FreeBSD,the server does not want to start on the port 8920,but only on port 8096. So,maybe the certificate produced on the FreeBSD machine is not good for Android ? Should I generate a new pfx file ? In this case,I can't use the same procedure that I've explained on my tutorial,because the OS is different. For example on Android I can't install the package "py311-certbot". How can I install the Let's encrypt certs on Android ? Can u share a tutorial ? thanks.

 

Edited by ziomario
Posted
6 hours ago, ziomario said:

Hello. I've installed emby server on Android 14 that I have installed on my raspberry pi 4. It is a custom ROM that I found here :

https://konstakang.com/devices/rpi4/AOSP14/

at this point I tried to use the emby.pfx file that I've generated for FreeBSD on the new installation of Android. The file has been accepted,but differently from what happened on FreeBSD,the server does not want to start on the port 8920,but only on port 8096. So,maybe the certificate produced on the FreeBSD machine is not good for Android ? Should I generate a new pfx file ? In this case,I can't use the same procedure that I've explained on my tutorial,because the OS is different. For example on Android I can't install the package "py311-certbot". How can I install the Let's encrypt certs on Android ? Can u share a tutorial ? thanks.

 

Re: 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...