RsaGetPublicKeyFromCert Method |
Note: This API is now obsolete.
Read public key from X.509 certificate into internal string format.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax[ObsoleteAttribute("Use Rsa.ReadPublicKey() instead", false)]
public static StringBuilder GetPublicKeyFromCert(
string certFile
)
<ObsoleteAttribute("Use Rsa.ReadPublicKey() instead", false)>
Public Shared Function GetPublicKeyFromCert (
certFile As String
) As StringBuilder
Parameters
- certFile String
- Filename of certificate file (or its base64 representation)
Return Value
StringBuilderStringBuilder containing an internal representation of the
public key; or an empty StringBuilder if error
RemarksThis returns a StringBuilder, not a string.
Use sb.ToString() to obtain a string.
See Also