-
Notifications
You must be signed in to change notification settings - Fork 6
Revoke user certificate
Tom Mitchell edited this page Sep 8, 2015
·
1 revision
SELECT member_id from ma_member_attribute
WHERE name = 'email_address'
AND value = '[email protected]';
\copy (SELECT certificate from ma_outside_cert
WHERE member_id = 'UUID_FROM_ABOVE')
to '/tmp/revoke.pem';
cat /tmp/revoke.pem | sed -e 's/\\n/\n/g' > revoke2.pem
sudo geni-revoke-member-certificate --revoke revoke2.pem
This can be done via SQL or from the shell. Both commands are equivalent so choose the one that is most convenient for you.
DELETE from ma_outside_cert
WHERE member_id = 'UUID_FROM_ABOVE'
OR
geni-delete-outside-cert -k [your-cert.pem] -c [your-cert.pem] \
-l https://ch.geni.net/ -m [UUID from above] -p [database password]