Visual Basic 6.0
Visual Basic 6.0
Get Certificate Public Key from PEM
See more Certificates Examples
Demonstrates how to load a PEM file containing a certificate and access the public key.Chilkat Visual Basic 6.0 Downloads
Dim success As Long
success = 0
Dim cert As New ChilkatCert
success = cert.LoadFromFile("qa_data/pem/my_cert.pem")
If (success = 0) Then
Debug.Print cert.LastErrorText
Exit Sub
End If
Dim pubkey As New PublicKey
success = cert.GetPublicKey(pubkey)
' Examine the public key as XML..
Debug.Print pubkey.GetXml()