Hi Lumir,
I am not sure if this is what you want. But there are verify-scripts
available. With the help of them you can verify the cn of a remote
machine like the on attached.
Gruesse,
Thomas
#!/usr/bin/perl -w
# Verify X509 Common Name
# Return 0 if cn matches the common name component of X509_NAME_oneline,
# 1 otherwise.
($depth, $cn) = @ARGV;
# debugging purposes
# print "<$cn> <$depth>\n";
if ($depth == 1
&& $cn eq '/C=DE/ST=Bayern/L=Erlangen/O=Friedrich-Alexander.Universitaet/OU=Informatik.CIP-Pool.CA/CN=CA.Informatik/Email=ca@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx') {
exit 0;
} elsif ($depth == 0
&& $cn eq '/C=DE/ST=Bayern/L=Erlangen/O=Friedrich-Alexander.Universitaet/OU=Informatik.CIP-Pool/CN=glanzmann.dyndns.org/Email=sithglan@xxxxxxxxxxxxxxxxxxxx') {
exit 0;
}
exit 1;
|