]> WPIA git - infra.git/blobdiff - manager/config
fix: use certificate authentication to request new gigi-certificates
[infra.git] / manager / config
index 3d7b25a323c5be165d15857e4aebaf6051ac2cee..187b963ae0eff49ed34196a5907be6e179933d0e 100755 (executable)
@@ -82,6 +82,13 @@ function mcurl {
     curl -s --cacert root.crt -b $folder/cookie-jar "https://www.$domain/$url" "$@"
 }
 
+# See mcurl, but use client-certificate from 'gigi-key.pem'
+function mscurl {
+    local url="$1"
+    shift
+    curl -s -E gigi-key.pem --cacert root.crt -b $folder/cookie-jar "https://secure.$domain/$url" "$@" | tee -a .weblog
+}
+
 # Connect via ssh into the "hop" container.
 function admin_ssh {
     ssh -i admin-key -p 2222 "admin@$to" "$@"