Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR code URL: use HTTPS instead of HTTP #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cert-card
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ certname=${1:-}
fetchkey=${2:-}

if [[ -z $certname || -z $fetchkey ]]; then
echo "usage: $0 <certname> <fetchkey>"
echo "usage: $0 <certname> <fetchkey>"
fi

echo "Reading PEM from stdin..." >&2
Expand Down Expand Up @@ -91,7 +91,7 @@ convert -size 696x492 canvas:white \
-background None -layers Flatten front-$certname.png

# TODO: update this URL
url="http://print-your-cert.cert-manager.io/certificate?certName=$certname&fetchKey=$fetchkey"
url="https://print-your-cert.cert-manager.io/certificate?certName=$certname&fetchKey=$fetchkey"
# url="http://192.168.1.171:8080/certificate?certName=$certname&fetchKey=$fetchkey"
echo "$url" >&2
echo "$url" | qrencode --type PNG --margin 4 -o - | convert -size 696x492 canvas:white \
Expand Down