Skip to content

Commit

Permalink
Manually merge PR180 to fix a missing variable init in the recently a…
Browse files Browse the repository at this point in the history
…dded automatic fingerprint update on certificate renewal in the migcheckssl cron job.

git-svn-id: svn+ssh://svn.code.sf.net/p/migrid/code/trunk@6197 b75ad72c-e7d7-11dd-a971-7dbc132099af
  • Loading branch information
jonasbardino committed Jan 20, 2025
1 parent 89ab9fb commit 8eb397e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,11 @@ additional web apps and OpenID on CentOS:
--serveralias_clause='ServerAlias' --alias_field=email \
--dhparams_path=~/certs/dhparams.pem \
--daemon_keycert=~/certs/combined.pem \
--daemon_keycert_sha256='FILE::/etc/httpd/MiG-certificates/combined.pem.sha256' \
--daemon_pubkey=~/certs/combined.pub \
--daemon_pubkey_from_dns=True \
--daemon_pubkey_md5='FILE::/etc/httpd/MiG-certificates/combined.pub.md5' \
--daemon_pubkey_sha256='FILE::/etc/httpd/MiG-certificates/combined.pub.sha256' \
--signup_methods="extoid migoid migcert extoidc" \
--login_methods="extoid migoid migcert extoidc" \
--distro=centos --skin=migrid-basic \
Expand Down Expand Up @@ -811,8 +814,11 @@ local OpenID login and added Jupyter+cloud integration for data analysis:
--serveralias_clause='#ServerAlias' --alias_field=email \
--dhparams_path=~/certs/dhparams.pem \
--daemon_keycert=~/certs/combined.pem \
--daemon_keycert_sha256='FILE::/etc/httpd/MiG-certificates/combined.pem.sha256' \
--daemon_pubkey=~/certs/combined.pub \
--daemon_pubkey_from_dns=True \
--daemon_pubkey_md5='FILE::/etc/httpd/MiG-certificates/combined.pub.md5' \
--daemon_pubkey_sha256='FILE::/etc/httpd/MiG-certificates/combined.pub.sha256' \
--signup_methods="extoid migoid extcert extoidc" \
--login_methods="extoid migoid extcert extoidc" \
--distro=centos --skin=erda-ucph-science \
Expand Down Expand Up @@ -997,8 +1003,11 @@ https://en.wikipedia.org/wiki/General_Data_Protection_Regulation
--serveralias_clause='#ServerAlias' --alias_field=email \
--dhparams_path=~/certs/dhparams.pem \
--daemon_keycert=~/certs/combined.pem \
--daemon_keycert_sha256='FILE::/etc/httpd/MiG-certificates/combined.pem.sha256' \
--daemon_pubkey=~/certs/combined.pub \
--daemon_pubkey_from_dns=True \
--daemon_pubkey_md5='FILE::/etc/httpd/MiG-certificates/combined.pub.md5' \
--daemon_pubkey_sha256='FILE::/etc/httpd/MiG-certificates/combined.pub.sha256' \
--daemon_show_address=sif-io.erda.dk \
--signup_methods="extoid migoid" \
--login_methods="extoid migoid" \
Expand Down
4 changes: 4 additions & 0 deletions mig/install/migcheckssl-template.sh.cronjob
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ server_key_crt_ca_pem="${domain_cert_path}/server.key.crt.ca.pem"
combined_pem="${domain_cert_path}/combined.pem"
combined_pem_sha256="${combined_pem}.sha256"
combined_pub="${domain_cert_path}/combined.pub"
combined_pub_md5="${combined_pub}.md5"
combined_pub_sha256="${combined_pub}.sha256"
dhparams_pem="${cert_base}/dhparams.pem"
# use git latest or release version of getssl
Expand Down Expand Up @@ -122,7 +123,10 @@ if [[ ${verbose} -eq 1 ]]; then
echo "server_key_crt_ca_pem: ${server_key_crt_ca_pem}"
echo "dhparams_pem: ${dhparams_pem}"
echo "combined_pem: ${combined_pem}"
echo "combined_pem_sha256: ${combined_pem_sha256}"
echo "combined_pub: ${combined_pub}"
echo "combined_pub_md5: ${combined_pub_md5}"
echo "combined_pub_sha256: ${combined_pub_sha256}"
fi

# Ensure domain certificate path
Expand Down
4 changes: 4 additions & 0 deletions tests/fixture/confs-stdlocal/migcheckssl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ server_key_crt_ca_pem="${domain_cert_path}/server.key.crt.ca.pem"
combined_pem="${domain_cert_path}/combined.pem"
combined_pem_sha256="${combined_pem}.sha256"
combined_pub="${domain_cert_path}/combined.pub"
combined_pub_md5="${combined_pub}.md5"
combined_pub_sha256="${combined_pub}.sha256"
dhparams_pem="${cert_base}/dhparams.pem"
# use git latest or release version of getssl
Expand Down Expand Up @@ -122,7 +123,10 @@ if [[ ${verbose} -eq 1 ]]; then
echo "server_key_crt_ca_pem: ${server_key_crt_ca_pem}"
echo "dhparams_pem: ${dhparams_pem}"
echo "combined_pem: ${combined_pem}"
echo "combined_pem_sha256: ${combined_pem_sha256}"
echo "combined_pub: ${combined_pub}"
echo "combined_pub_md5: ${combined_pub_md5}"
echo "combined_pub_sha256: ${combined_pub_sha256}"
fi

# Ensure domain certificate path
Expand Down

0 comments on commit 8eb397e

Please sign in to comment.