Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Eğer bir önceki çözüm çalışmazsa, aşağıdaki betiği çalıştırarak bir yedekleme oluşturun:

    Code Block
    TODAY=$(date +%Y%m%d%H)
    mv /opt/octoxlabs/backend/configurations/nginx/ssl/octoxlabs.crt "/opt/octoxlabs/backend/configurations/nginx/ssl/octoxlabs.crt.${TODAY}.old" &&
    mv /opt/octoxlabs/backend/configurations/nginx/ssl/octoxlabs.key "/opt/octoxlabs/backend/configurations/nginx/ssl/octoxlabs.key.${TODAY}.old" &&
    mv /opt/octoxlabs/backend/configurations/nginx/ssl/octoxlabs.pass "/opt/octoxlabs/backend/configurations/nginx/ssl/octoxlabs.pass.${TODAY}.old" &&
    echo "Sertifika yedekleme işlemi başarıyla tamamlandı."
  2. Yeni sertifikaları kurmak için aşağıdaki betiği çalıştırın:

    Code Block
    languagebash
    echo "Yeni sertifikalar kuruluyor."
    cp <path/to/file.crt> /opt/octoxlabs/backend/configurations/nginx/ssl/octoxlabs.crt &&
    cp <path/to/file.key> /opt/octoxlabs/backend/configurations/nginx/ssl/octoxlabs.key &&
    cp <path/to/passfile.pass> /opt/octoxlabs/backend/configurations/nginx/ssl/octoxlabs.pass &&
    cp <path/to/file.crt> /opt/octoxlabs/frontend/configurations/nginx/ssl/octoxlabs.crt &&
    cp <path/to/file.key> /opt/octoxlabs/frontend/configurations/nginx/ssl/octoxlabs.key &&
    cp <path/to/passfile.pass> /opt/octoxlabs/frontend/configurations/nginx/ssl/octoxlabs.pass &&
    echo "Kurulum tamamlandı!"

Info

<path/to/file.crt>, <path/to/file.key>, <path/to/passfile.pass> yazan yerlere ilgili .crt, .key ve .pass dosyalarının yolları yazılmalıdır.

\uD83D\uDCCB İlgili Makaleler

Filter by label (Content by label)
max5
maxCheckboxfalse
sortcreation
reversefalse
cqllabel in ( "kb-how-to-article" , "troubleshooting" ) and label = "ssl"