| nd-docs | nd-product | nd-files | ||
|---|---|---|---|---|
DOCS-027 |
NAGENT |
|
-
Create the
/etc/ssl/nginxdirectory:sudo mkdir -p /etc/ssl/nginx -
Log in to MyF5 Customer Portal and download your
nginx-repo.crtandnginx-repo.keyfiles. -
Copy the files to the
/etc/ssl/nginx/directory:sudo cp nginx-repo.crt nginx-repo.key /etc/ssl/nginx/ -
Create a file bundle of the certificate and key:
cat /etc/ssl/nginx/nginx-repo.crt /etc/ssl/nginx/nginx-repo.key > /etc/ssl/nginx/nginx-repo-bundle.crt -
Install the prerequisites:
sudo zypper install curl ca-certificates gpg2 gawk -
To set up the zypper repository for
nginx-agentpackages, run the following command:sudo zypper addrepo --refresh --check \ 'https://pkgs.nginx.com/nginx-agent/sles/$releasever_major?ssl_clientcert=/etc/ssl/nginx/nginx-repo-bundle.crt&ssl_verify=peer' nginx-agent -
Next, import an official NGINX signing key so
zypper/rpmcan verify the package's authenticity. Fetch the key:curl -o /tmp/nginx_signing.key https://nginx.org/keys/nginx_signing.key -
Verify that the downloaded file contains the proper key:
gpg --with-fingerprint --dry-run --quiet --no-keyring --import --import-options import-show /tmp/nginx_signing.key -
The output should contain the full fingerprints
8540 A6F1 8833 A80E 9C16 53A4 2FD2 1310 B49F 6B46,573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62,9E9B E90E ACBC DE69 FE9B 204C BCDC D8A3 8D88 A2B3as follows:pub rsa4096 2024-05-29 [SC] 8540A6F18833A80E9C1653A42FD21310B49F6B46 uid nginx signing key <signing-key-2@nginx.com> pub rsa2048 2011-08-19 [SC] [expires: 2027-05-24] 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 uid nginx signing key <signing-key@nginx.com> pub rsa4096 2024-05-29 [SC] 9E9BE90EACBCDE69FE9B204CBCDCD8A38D88A2B3 uid nginx signing key <signing-key-3@nginx.com> -
Finally, import the key to the rpm database:
sudo rpmkeys --import /tmp/nginx_signing.key -
To install
nginx-agent, run the following command:sudo zypper install nginx-agent{{<call-out "tip" "Tip: Install specific versions" "" >}} To install
nginx-agentwith a specific version (for example, 2.42.0):sudo zypper install -y nginx-agent=2.42.0{{< /call-out >}}
-
Verify the installation:
sudo nginx-agent -v