Store X509 Certificate in database

前端 未结 2 654
失恋的感觉
失恋的感觉 2021-02-08 11:37

In order to access to the web service I need a certificate.

I generated my certs:

openssl genrsa 1024 > private.key
openssl req -new -x509 -nodes -sha         


        
2条回答
  •  余生分开走
    2021-02-08 11:58

    You have a constructor with a byte[]. So you can store your certificate as a byte array and load your certificate with

    public X509Certificate2(
        byte[] rawData
    )
    

    link: http://msdn.microsoft.com/en-us/library/ms148413%28v=VS.100%29.aspx

提交回复
热议问题