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ı!"

...