예제 #1
0
 public static IRSA CreateWithPrivateKeyFromFile(string certFile, string password) => new RsaFunction(RsaKeyGenerator.GeneratePrivateKeyFromFile(certFile, password));
예제 #2
0
 /// <summary>
 /// Get private key of xml format from certificate file.
 /// </summary>
 /// <param name="certFile">The string path of certificate file.</param>
 /// <param name="password">The string password of certificate file.</param>
 /// <returns>String private key of xml format.</returns>
 public static RsaKey GeneratePrivateKeyFromFile(string certFile, string password) => RsaKeyGenerator.GeneratePrivateKeyFromFile(certFile, password);