x509_parse
Parse an X509 certificate and return the information as an array.
Syntax
Function x509_parse(x509cert, [shortnames]) As Dictionary
x509_parse() returns information about the supplied x509cert,
including fields such as subject name, issuer name, purposes, valid from and
valid to dates etc. x509cert can be string, filename, or loaded x509 resource.
Example
Set ret = ssl.x509_parse("file://C:\ca-cert.pem")
For Each x In ret
If IsObject(ret(x)) Then
Set x = ret(x)
For Each a In x
MsgBox " " + CStr(a) + ": " + x(a)
Next
Else
MsgBox x & " = " & ret(x)
End If
Next
|
|