Skip to content

Instantly share code, notes, and snippets.

@MilxMil

MilxMil/Bulk CA revoke

Last active Jan 13, 2020
Embed
What would you like to do?
#!/bin/bash
user="user.name"
pass="password"
declare -a array
echo "Please enter the orders you want to revoke (each order should be placed on the new line):";
echo "Press \"q\" to stop"
echo
while true;
do
read line
if [[ $line = "q" ]]
then break
else
array=("${array[@]}" $line)
fi
done
echo
for orderNumber in "${array[@]}"
do
curl -s -X POST -d "loginName="$user"&loginPassword="$pass"&orderNumber="$orderNumber"&revocationReason="Customer request"" https://secure.trust-provider.com/products/!AutoRevokeSSL | sed "s/0/Order $orderNumber revoked!/g"
wait
done
#!/bin/bash
user="user.name"
pass="password"
declare -a array
echo "Please enter the orders you want to revoke (each order should be placed on the new line):";
echo "Press \"q\" to stop"
echo
while true;
do
read line
if [[ $line = "q" ]]
then break
else
array=("${array[@]}" $line)
fi
done
echo
for orderNumber in "${array[@]}"
do
curl -s -X POST -d "loginName="$user"&loginPassword="$pass"&orderNumber="$orderNumber"&revocationReason="Customer request"" https://secure.trust-provider.com/products/!AutoRevokeSSL | sed "s/0/Order $orderNumber revoked!/g"
wait
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.