Uploaded August 2023 | Updated September 2026, 2 weeks ago
#TrueNAS #SSL #HTTPS
Full steps can be found at i12bretro.github.io/tutorials/0377.html
--------------------------------------------------------------------
Prerequisites
--------------------------------------------------------------------
- A XCA PKI database youtu.be/ezzj3x207lQ
--------------------------------------------------------------------
Create Your SSL Certificate
--------------------------------------------------------------------
01. Launch XCA
02. Open the PKI database if it is not already (File ≫ Open DataBase), enter password
03. Click on the Certificates tab, right click on your Intermediate CA certificate
04. Select New
05. On the Source tab, make sure Use this Certificate for signing is selected
06. Verify your Intermediate CA certificate is selected from the drop down
07. Click the Subject tab
08. Complete the Distinguished Name section
internalName: nas.i12bretro.local
countryName: US
stateOrProvinceName: Virginia
localityName: Northern
organizationName: i12bretro
organizationUnitName: i12bretro Certificate Authority
commonName: nas.i12bretro.local
09. Click the Generate a New Key button
10. Enter a name and set the key size to at least 2048
11. Click Create
12. Click on the Extensions tab
13. Select End Entity from the type list
14. Click Edit next to Subject Alternative Name
15. Add any DNS or IP addresses that the certificate will identify
16. Update the validity dates to fit your needs
17. Click the Key Usage tab
18. Under Key Usage select Digital Signature, Key Encipherment
19. Under Extended Key Usage select Web Server and Web Client Authentication
20. Click the Netscape tab
21. Select SSL Server
22. Click OK to create the certificate
--------------------------------------------------------------------
Exporting Required Files
--------------------------------------------------------------------
01. In XCA, click on the Certificates tab
02. Right click the SSL certificate ≫ Export ≫ File
03. Set the file name with a .crt extension and verify the export format is PEM (*.crt)
04. Click OK
05. Click the Private Keys tab
06. Right click the private key generated for the SSL certificate ≫ Export ≫ File
07. Set the file name with a .pk8 extension and verify the export format is PKCS #8 (*.pk8)
08. Click OK
--------------------------------------------------------------------
Applying the Certificates
--------------------------------------------------------------------
01. Open a web browser and log into the TrueNAS web UI
02. Select Network ≫ Global Configuration
03. Set the Hostname and Domain fields to match the certificate created
04. Click the Save button at the bottom of the form
05. Select System ≫ Certificates from the left navigation
06. Click the Add button at the top right
07. Click the Type dropdown and select Import Certificate
08. Enter Web UI SSL in the Name field
09. Open the .crt file exported earlier in Notepad, copy the contents to the Certificate data field
10. Open the .key file exported earlier in Notepad, copy the contents to the Private key data field
11. Scroll down to the bottom of the page and click Submit
12. Select System ≫ General from the left navigation
13. Select Web UI SSL from the GUI SSL Certificate dropdown
14. Click the Save button at the bottom of the page
15. Check the Confirm checkbox and click Continue to restart the web service
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#TrueNAS #SSL #HTTPS
Full steps can be found at i12bretro.github.io/tutorials/0377.html
--------------------------------------------------------------------
Prerequisites
--------------------------------------------------------------------
- A XCA PKI database youtu.be/ezzj3x207lQ
--------------------------------------------------------------------
Create Your SSL Certificate
--------------------------------------------------------------------
01. Launch XCA
02. Open the PKI database if it is not already (File ≫ Open DataBase), enter password
03. Click on the Certificates tab, right click on your Intermediate CA certificate
04. Select New
05. On the Source tab, make sure Use this Certificate for signing is selected
06. Verify your Intermediate CA certificate is selected from the drop down
07. Click the Subject tab
08. Complete the Distinguished Name section
internalName: nas.i12bretro.local
countryName: US
stateOrProvinceName: Virginia
localityName: Northern
organizationName: i12bretro
organizationUnitName: i12bretro Certificate Authority
commonName: nas.i12bretro.local
09. Click the Generate a New Key button
10. Enter a name and set the key size to at least 2048
11. Click Create
12. Click on the Extensions tab
13. Select End Entity from the type list
14. Click Edit next to Subject Alternative Name
15. Add any DNS or IP addresses that the certificate will identify
16. Update the validity dates to fit your needs
17. Click the Key Usage tab
18. Under Key Usage select Digital Signature, Key Encipherment
19. Under Extended Key Usage select Web Server and Web Client Authentication
20. Click the Netscape tab
21. Select SSL Server
22. Click OK to create the certificate
--------------------------------------------------------------------
Exporting Required Files
--------------------------------------------------------------------
01. In XCA, click on the Certificates tab
02. Right click the SSL certificate ≫ Export ≫ File
03. Set the file name with a .crt extension and verify the export format is PEM (*.crt)
04. Click OK
05. Click the Private Keys tab
06. Right click the private key generated for the SSL certificate ≫ Export ≫ File
07. Set the file name with a .pk8 extension and verify the export format is PKCS #8 (*.pk8)
08. Click OK
--------------------------------------------------------------------
Applying the Certificates
--------------------------------------------------------------------
01. Open a web browser and log into the TrueNAS web UI
02. Select Network ≫ Global Configuration
03. Set the Hostname and Domain fields to match the certificate created
04. Click the Save button at the bottom of the form
05. Select System ≫ Certificates from the left navigation
06. Click the Add button at the top right
07. Click the Type dropdown and select Import Certificate
08. Enter Web UI SSL in the Name field
09. Open the .crt file exported earlier in Notepad, copy the contents to the Certificate data field
10. Open the .key file exported earlier in Notepad, copy the contents to the Private key data field
11. Scroll down to the bottom of the page and click Submit
12. Select System ≫ General from the left navigation
13. Select Web UI SSL from the GUI SSL Certificate dropdown
14. Click the Save button at the bottom of the page
15. Check the Confirm checkbox and click Continue to restart the web service
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro



![Run MyBB - Open Source Forum Software - in Docker
#MyBB #Forum #Docker
*** Updated 05/24/2024
Full steps can be found at https://i12bretro.github.io/tutorials/0932.html
What is MyBB?
MyBB is the free and open source forum software powering thousands of engaging, vibrant, and unique communities across the internet. - https://mybb.com/
Installing Docker
01. Log into the Linux host and run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running MyBB Container
01. Continue with the following commands in a terminal window
# create working directories
mkdir ~/docker/mybb -p && mkdir ~/docker/postgresql -p && mkdir ~/docker/nginx -p
# set owner of docker directory
sudo chown $USER:$USER ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/mybb
# download the nginx conf file
wget -O ~/docker/nginx/default.conf https://gist.githubusercontent.com/kawaii/ed2fbbf11309b8f635a623fa87abce8d/raw/3a5a6e36b238e55aaef519693ca16c82fbafd2fd/default.conf
# create containers network
docker network create containers
# run the postgesql container
docker run -d name postgres network containers -p 5432:5432 -e POSTGRES_USER=mybb_rw -e POSTGRES_PASSWORD=My44_rw$ -e POSTGRES_DB=mybb -v ~/docker/postgresql:/var/lib/postgresql/data restart=unless-stopped postgres:latest
# run the mybb container
docker run -d name mybb -v ~/docker/mybb:/var/www/html:rw network containers restart=unless-stopped mybb/mybb
# run nginx webserver container
docker run -d name nginx network containers -p 8081:80 -v ~/docker/mybb:/var/www/html:ro -v ~/docker/nginx:/etc/nginx/conf.d:ro restart=unless-stopped nginx
02. Open a web browser and navigate to http://DNSorIP:8081
03. Click Next at the Welcome screen
04. Click Next at the License Agreement
05. Click Next at the Requirements Check
06. Complete the Database Configuration as shown below
Database Engine: PostgreSQL
Database Server Hostname: postgres
Database Username: mybb_rw
Database Password: My44_rw$
Database Name: mybb
Table Prefix: mybb_
07. Click Next after the table creation completes
08. Click Next to complete the Table Population
09. Click Next at the Theme Insertion screen
10. Modify the Board Configuration form as needed ≫ Click Next
11. Create an administrator account by entering a Username, Password and Email Address ≫ Click Next
12. Click the Admin Control Panel link
13. Login with the administrator username and password created earlier
14. Welcome to MyBB
Documentation: https://github.com/mybb/docker
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run MyBB - Open Source Forum Software - in Docker](https://i.ytimg.com/vi/cBrApDiqw3o/mqdefault.jpg)


![Run VSCodium Containerized in Docker
#VSCodium #Linux #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0985.html
What is VSCodium?
VSCodium is a clone of Microsoft’s Visual Studio Code. The project’s sole aim is to provide you with ready to use binaries without Microsoft’s telemetry and tracking code. - https://vscodium.com/
Installing Docker
01. Log into the Linux Docker host and run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running VSCodium
01. Continue with the following commands in a terminal window
# list current uid and gid, note these for later
id $user
# create working directories
mkdir ~/docker/vscodium/{config,code} -p
# run the vscodium docker image
# replace PUID, GUID with the output of the id $user command above
docker run -d name=vscodium cap-add=IPC_LOCK -e PUID=1000 -e PGID=1000 -e TZ=America/New_York -p 8003:3000 -v ~/docker/vscodium/config:/config -v ~/docker/vscodium/code:/code shm-size=1gb restart unless-stopped lscr.io/linuxserver/vscodium:latest
02. Open a web browser and navigate to http://localhost:8003
03. Welcome to VSCodium
Source: https://hub.docker.com/r/linuxserver/vscodium
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run VSCodium Containerized in Docker](https://i.ytimg.com/vi/dJgh13kYmoI/mqdefault.jpg)



