Last active
January 13, 2020 11:26
-
-
Save MilxMil/ef3ce7d9f4a8f093b8c7b4b6653c7ffe to your computer and use it in GitHub Desktop.
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
#!/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 |
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
#!/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