- Firstly, we need to create a directory to store the repository certificates in:
mkdir -p /etc/ssl/nginx
- Next, you will need to download both the private and public certificates from the NGINX customer portal (https://cs.nginx.com), which should be named:
nginx-repo.key
nginx-repo.crt
- Copy these files into the directory created and then add the NGINX package signing key in using apt-key:
wget http://nginx.org/keys/nginx_signing.key && apt-key add \ nginx_signing.key
- To ensure we have the required prerequisites, we can install these packages with the following command:
apt install -y software-properties-common apt-transport-https \ lsb-release ca-certificates
- We can then add the NGINX Plus repository via the add-apt-repository ...