マイクロソフト系技術情報 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。

目次

概要

暗号化ライブラリ

ユーティリティに暗号化ライブラリを含む。

証明書操作

証明書生成から、色々な証明書操作が可能。

各種証明書操作

pem化

バイナリ形式ファイルをpem化できる。

デバッグ

詳細

暗号化ライブラリ

.NET Standardでは、OpenSSLベースのプロバイダも提供され始めている
(.NET Platform Extensions ?の 2.1以上で使用できる模様)。

プロバイダ

以下のプロバイダがOpenSsl?ベースのプロバイダとして提供されいている。
https://github.com/dotnet/corefx/tree/master/src/System.Security.Cryptography.OpenSsl/src/System/Security/Cryptography

ネイティブ実装

NuGetで検索すると以下のようなLinuxディストリビューション毎のネイティブ実装がある事を確認できる。
https://www.nuget.org/packages?q=runtime.native.System.Security.Cryptography.OpenSsl

#名前空間
プラットフォーム・・・
1runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl?
2runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl?
3runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl?
4runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl?
5runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl?
6runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl?
7runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl?
8runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl?
9runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl?
10runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl?
11runtime.opensuse.42.3-x64.runtime.native.System.Security.Cryptography.OpenSsl?
12runtime.fedora.28-x64.runtime.native.System.Security.Cryptography.OpenSsl?
13runtime.ubuntu.18.04-x64.runtime.native.System.Security.Cryptography.OpenSsl?
14runtime.debian.9-x64.runtime.native.System.Security.Cryptography.OpenSsl?
15runtime.fedora.27-x64.runtime.native.System.Security.Cryptography.OpenSsl?

証明書操作

基本

in, outを拡張子付きで明示することで制御した方がイイ。

*.pfxの生成

*.cer に変換

'*.pfxから、公開鍵 or 証明書を出力

※ 署名検証は、PUBLIC KEY, CERTIFICATEの何れか1つがあれば可能。

*.pem に変換

参考

暗号化ライブラリ

証明書操作

@IT

Qiita

Stack Overflow

その他


Tags: :セキュリティ, :暗号化, :証明書, :.NET Core, :.NET Standard


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS