usage: ./cert-lookup -s|-p -n [-c] version: V1-7 Queries the DOEGrids ldap directory of public certificates and prints some information from the certificates for each matching subject name. -p searches in OU=People -s searches in OU=Services -n name is the subject name to look up, can include wildcards, i.e., "*Olson*" will match all subject names that include 'Olson' in them -c a debugging option, will cause temporary files & directories to be left and not deleted, means 'no clean' -V print version of cert-scripts package and exit Description of output: For each matching subject name entry in the ldap directory the following 3 lines (sometimes 2) are written to stdout: ------------------------------------------------------------------------ cn: sponsor: Note that service certificates and some person certificate directory entries do not have the sponsor field. If there are valid (not revoked) certificates for this subject name they are listed as follows (there can be several certificates): ----------------- subject= serial= notBefore= notAfter= Side effects: Creates some temporary files with prefix 'tmp' and directories named 'cn-#' where # is a number. These temporary files & directories are removed unless -c is used. Questions & comments about this script should be directed to ra@ppdg.net, or dlolson@lbl.gov