This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
if [ -z "${1+x}" ] || [ -z "${2+x}" ] | |
then | |
echo "Check a leaf ssl server certificate presented by a specified host" | |
echo "on a specified port." | |
echo "Expect exit code 0 upon success, non-zero otherwise." | |
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This was used to deploy Certificates during CI deployments from GitLab CI | |
# You need files at HTTPS_KEY and HTTPS_CERT (easily done with GitLab Variables of type file) | |
# HTTPS_CERT is expected to contain a chain | |
Task::deploy_cert () { | |
: @desc "Deploy certificate from GitLab runner to its designated position" | |
: @param target_dir="$HOME/ilias" | |
: @param cert_dir_name="certs-$(date +'%Y-%m-%d_%H-%M-%S%z')" |
OlderNewer