19 lines
376 B
C++
19 lines
376 B
C++
|
#!/usr/bin/env sh
|
||
|
|
||
|
domain="msrg.cc"
|
||
|
|
||
|
tmpdir=$(mktemp -d)
|
||
|
trap 'rm -rf $tmpdir' EXIT
|
||
|
|
||
|
cp "$CERTIFICATES_PATH/$domain.crt" "$tmpdir/fullchain.pem"
|
||
|
cp "$CERTIFICATES_PATH/$domain.key" "$tmpdir/privkey.pem"
|
||
|
|
||
|
curl \
|
||
|
-F submit="submit" \
|
||
|
-F token="$WIUWIU_TOKEN" \
|
||
|
-F "cert=@$tmpdir/fullchain.pem" \
|
||
|
-F "key=@$tmpdir/privkey.pem" \
|
||
|
https://cert-upload.wiuwiu.de/
|
||
|
|
||
|
# vim: ft=sh
|