Table of Contents
Change Apache SSL certificate
Steps
Retrieve certificate
Download certificate from Synology
- Open Control Panel
- Select Security
- Select Certificate tab
- Right click certificate and select Export certificate
The output includes cert.pem
, chain.pem
, and privkey.pem
in archive file or folder.
Merge certificate and chain
Concatenate certificate file and chain file into one file called cert-with-chain.pem
or fullchain.pem
Deploy certificate files
- Create a folder in apache configuration folder, such
certs/
- Copy
cert-with-chain.pem
andprivkey.pem
file intocerts/
folder.
Setup Apache
This can be done by changing Apache configuration or change the make soft link to the files which configuration used.
Apache configuration items
SSLCertificateFile /data/certs/cert-with-chain.pem
SSLCertificateKeyFile /data/certs/privkey.key