Skip to content

Commit

Permalink
Update ssrn-ot-install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive authored Jul 3, 2021
1 parent a23f592 commit 08d9ea0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install/ssrn-ot-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function do_lets_encrypt_certificate_authority() {
judge "[CA] Obtain website certificate"

wget -O - https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem > intermediate.pem
cat signed.crt intermediate.pem > full_chained_cert.pem
cat signed.crt intermediate.pem > chained_cert.pem
judge "[CA] Merger of intermediate certificate and website certificate"

wget -O - https://letsencrypt.org/certs/isrgrootx1.pem > root.pem
Expand All @@ -302,7 +302,7 @@ function acme_cron_update(){
cd ${site_cert_dir}
python acme_tiny.py --account-key ./account.key --csr ./domain.csr --acme-dir ${site_dir}/.well-known/acme-challenge/ > ./signed.crt || exit
wget -O - https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem > intermediate.pem
cat signed.crt intermediate.pem > full_chained_cert.pem
cat signed.crt intermediate.pem > chained_cert.pem
systemctl stop nginx
sleep 2
systemctl start nginx
Expand Down Expand Up @@ -332,7 +332,7 @@ function nginx_web_server_config_end() {
server {
listen ${web_svr_listen_port} ssl default_server;
listen [::]:${web_svr_listen_port} ssl default_server;
ssl_certificate ${site_cert_dir}/full_chained_cert.pem;
ssl_certificate ${site_cert_dir}/chained_cert.pem;
ssl_certificate_key ${site_cert_dir}/private_key.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
Expand Down

0 comments on commit 08d9ea0

Please sign in to comment.