Xojo Plugin
Xojo Plugin
Get Certificate's Public Key
Loads a certificate from PEM and gets the public key.Chilkat Xojo Plugin Downloads
Dim success As Boolean
success = False
Dim cert As New Chilkat.Cert
Dim strPem As String
strPem = "-----BEGIN CERTIFICATE----- ..."
success = cert.LoadPem(strPem)
If (success = False) Then
System.DebugLog(cert.LastErrorText)
Return
End If
Dim pubKey As New Chilkat.PublicKey
success = cert.GetPublicKey(pubKey)
// You can now use the public key object however it is needed,
// and access its various properties and methods..
System.DebugLog(pubKey.GetXml())