--- title: "Custom TLS Certificate" slug: "fmadio-os-custom-www-certificate" updated: 2025-04-20T10:27:10Z published: 2025-04-20T10:27:10Z canonical: "docs.fmad.io/fmadio-os-custom-www-certificate" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.fmad.io/llms.txt > Use this file to discover all available pages before exploring further. # Custom TLS Certificate We use nginx as our WWW front end interface, enabling all the standard features and stability this provides. Custom TLS/SSL WWW x509 certificates are supported. Steps as follows ## STEP 1) Copy Certs PEM file Copy .pem to /opt/fmadio/etc/fmadio_cert.pem e.g ```plaintext cp mycert.pem /opt/fmadio/etc/fmadio_cert.pem ``` Key file Copy .key to /opt/fmadio/etc/fmadio_cert.key e.g ```plaintext cp mysert.key /opt/fmadio/etc/fmadio_cert.key ``` ## Step 2) Restart nginx Need to restart NGINX for the new certificate to be loaded ```plaintext sudo killall nginx ``` ## Step 3) Verify NGINX will take 60sec to restart (it runs off a cronjob). Wait for nginx to restart Once restarted, the new Certificate should be loaded ## Debugging Any problems check the log files in /mnt/store0/log/nginx_error.log