Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# を使用して証明書から公開鍵を抽出する方法はありますか? 拡張子が .crt の証明書ファイルがあります。
使用する:
certificate = new X509Certificate2("server.crt", "secret_password"); byte[] publicKey = certificate.PublicKey.EncodedKeyValue.RawData;
現在、「publicKey」バイト配列は、公開鍵値の ASN.1 エンコード表現です。