CryptoSys PKI Pro Manual

Rsa.ReadPrivateKeyInfo Method

Read from an (unencrypted) PKCS-8 private key info file into a private key string.

Syntax

[C#]
[ObsoleteAttribute( "Use Rsa.ReadPrivateKey() instead", false )]
public static StringBuilder ReadPrivateKeyInfo(
   string prikeyinfoFile 
)
[VB]
<ObsoleteAttribute( "Use Rsa.ReadPrivateKey() instead", false )>
Public Shared Function ReadPrivateKeyInfo (
   prikeyinfoFile As String 
) As StringBuilder

Parameters

prikeyinfoFile  String
Name of file

Return Value

StringBuilder
StringBuilder containing an internal representation of the private key; or an empty StringBuilder if error

Remarks

This returns a StringBuilder, not a string. Use sb.ToString() to obtain a string.

See Also

VB6/C equivalent: RSA_ReadPrivateKeyInfo

[Contents] [Index]

[PREV: Rsa.ReadPrivateKeyFromPFX Method...]   [Contents]   [Index]   
   [NEXT: Rsa.ReadPublicKey Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.