scp home

Home    CertX ActiveX Online Help Prev Next
Introduction
License
Certificate Request functions
csr_new
csr_export_to_file
csr_export
csr_sign
x.509 functions
x509_check_private_key
x509_checkpurpose
x509_export
x509_export_to_file
x509_free
x509_read
x509_parse
PKCS7 functions
pkcs7_decrypt
pkcs7_encrypt
pkcs7_sign
pkcs7_verify
RSA
pkey_new
pkey_export
pkey_export_to_file
pkey_get_public
pkey_get_private
public_encrypt
private_decrypt
open (decrypt)
seal (encrypt)
sign
verify
PKCS7 Constants

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

(c) Activecrypt Software LLC, 2004

 

Browser Based Help. Published by chm2web software.