예제 #1
0
 public void ExportCertificate()
 {
     byte[] certificate = Gost2001KeyContainer.ExportCertificateData(ContainerSert);
     CollectionAssert.IsNotEmpty(certificate);
 }
예제 #2
0
 /// <summary>
 ///     Экспорт сертификата из контейнера.
 /// </summary>
 public string ExportCertificate()
 {
     log.Debug("ExportCertificateData: keyContainerName: {0}", Container);
     return(Convert.ToBase64String(Gost2001KeyContainer.ExportCertificateData(Container)));
 }