diff --git a/doc/settings/nginx.md b/doc/settings/nginx.md
index 4f29a718a0b703cc140837f2d9502119c11fce75_ZG9jL3NldHRpbmdzL25naW54Lm1k..2435fcdfd22f0f4e869ef21854953e3014e0d1cc_ZG9jL3NldHRpbmdzL25naW54Lm1k 100644
--- a/doc/settings/nginx.md
+++ b/doc/settings/nginx.md
@@ -881,5 +881,5 @@
 To ensure you have the correct key and certificate, you can ensure that the modulus of the private key and certificate match:
 
 ```shell
-/opt/gitlab/embedded/bin/openssl rsa -in /etc/gitlab/ssl/gitlab.example.com.key -noout -modulus | openssl sha1
+/opt/gitlab/embedded/bin/openssl rsa -in /etc/gitlab/ssl/gitlab.example.com.key -noout -modulus | /opt/gitlab/embedded/bin/openssl sha256
 
@@ -885,5 +885,5 @@
 
-/opt/gitlab/embedded/bin/openssl x509 -in /etc/gitlab/ssl/gitlab.example.com.crt -noout -modulus| openssl sha1
+/opt/gitlab/embedded/bin/openssl x509 -in /etc/gitlab/ssl/gitlab.example.com.crt -noout -modulus| /opt/gitlab/embedded/bin/openssl sha256
 ```
 
 Once you verify that they match, you will need to reconfigure and reload NGINX: