?? verify-cn
字號(hào):
#!/usr/bin/perl# Verify X509 Common Name## Return 0 if cn matches the common name component of X509_NAME_oneline,# 1 otherwise.## For example in openvpn, you could use the option:# --tls-verify "./verify-cn Test-Client"die "usage: verify-cn cn certificate_depth X509_NAME_oneline" if (@ARGV != 3);($cn, $depth, $x509) = @ARGV;if ($depth == 0) { if ($x509 =~ /\/CN=([^\/]+)/) { if ($cn eq $1) { exit 0; } } exit 1;}exit 0;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -