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.
証明書を含むPFXストアを開くための情報はどこにありますか?私はこれに出くわしました、しかし私はPfxOpenクラスで一種の嫌悪感を持っています。
編集-秘密鍵を使用してpfxファイルをエクスポートしました。私はそれをデータベースに保存しています。pfxファイルを開いて、そのpfxファイルに含まれている証明書から、シリアル、有効期限などの情報を読み取れるようにしたい。
X509Certificate2 cert = new X509Certificate2(filename、password)
そこから、証明書の内容を確認できます。X509Certificate2には多くのオーバーロードがあります。見てみな。