vb System.Security.Cryptography.X509Certificates.X509Certificate.GetRawCertData类(方法)实例源码

下面列出了vb System.Security.Cryptography.X509Certificates.X509Certificate.GetRawCertData 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Security.Cryptography.X509Certificate   
' 导入命名空间
Imports System.Security.Cryptography.X509Certificates




Public Class X509
   
   
   Public Shared Sub Main()
      
      ' The path to the certificate.
      Dim Certificate As String = "Certificate.cer"
      
      ' Load the certificate into an X509Certificate object.
      Dim cert As X509Certificate = X509Certificate.CreateFromCertFile(Certificate)
      
      ' Get the value.
      Dim results As Byte() = cert.GetRawCertData()
      
      ' Display the value to the console.
      Dim b As Byte
      For Each b In  results
         Console.Write(b)
      Next b
   End Sub 
End Class


问题


面经


文章

微信
公众号

扫码关注公众号