flagflag  If you want to see English page, please click "English" Button at Left.
5: 2017-02-18 (土) 11:22:01 macsatou ソース 現: 2023-08-12 (土) 10:53:01 iseki ソース
Line 1: Line 1:
-** OpenSSL [#i4f7b286]+** OpenSSL [#o98d2107] 
 +*** コマンド例[#i4f7b286] 
 + 
 +**** CAに認証してもらう (pem) [#o06fc354] 
 +- openssl genrsa -out private/key.pem 2048 
 +- openssl req -new -key private/key.pem -out csr.pem 
 + 
 +**** オレオレ証明書 [#u4112959] 
 +- openssl req -new -newkey rsa:2048 -days 3650 -nodes -keyout private.pem -out server.csr 
 +- openssl x509 -in server.csr -days 3650 -req -signkey private/key.pem -out server.pem 
 + 
 +**** オレオレ認証局 [#x95593cd] 
 +- openssl req -new -x509 -key private/key.pem -out server.crt -days 3650 
 +#br 
 + 
 +** Install [#sab17923] 
***1.1.0e Install [#o0147261] ***1.1.0e Install [#o0147261]
-https://http2.try-and-test.net/openssl1_​1_0.html +-see https://http2.try-and-test.net/openssl1_​1_0.html 
-なお、大幅に仕様が変わっており、互換が失われているため、使用は難しい。+-なお、大幅に仕様が変わっており、互換が失われているため、使用は難しい(らしい)。 
 +- /usr/local/lib64 にライブラリが保存される. 
 +- pcファイルは /usr/local/lib64/pkgconfig に保存される 
 # tar xzfv openssl-1.1.0e.tar.gz  # tar xzfv openssl-1.1.0e.tar.gz
 # cd openssl-1.1.0e  # cd openssl-1.1.0e
- # ./config --prefix=/usr/local/openssl shared -no-ssl2 + # ./config shared 
- # make -j4+ # make
 # make test  # make test
 (perl-coreがないとすべてエラーとなる)  (perl-coreがないとすべてエラーとなる)
- (Rootだと1件エラーになるが仕様)+ (Rootだと1件エラーになるが仕様らしい)
 # make install  # make install
 +- /etc/ld.so.conf に /usr/local/lib64 を追加して ldconfig を実行する.
 +- for PHP7
 + cd /usr/local/lib
 + ln -s ../lib64/* .
 +
 +#br
 +
 +***1.0.2o Install [#xfb04fab]
 +- /usr/local/ssl/lib がライブラリのディレクトリ
 +- pcファイルは /usr/local/ssl/lib/pkgconfig に保存される
 +
 + # zcat openssl-1.0.2o.tar.gz |tar xfv -
 + # cd openssl-1.0.2u
 + # ./config shared
 + # make depend
 + # make
 + # make test
 + # make install
 +- /etc/ld.so.conf に /usr/local/ssl/lib を追加して ldconfig を実行する.
 +#br
*** 0.9.x Install [#j82392e4] *** 0.9.x Install [#j82392e4]
Line 23: Line 62:
*** 確認コマンド [#va7af9ed] *** 確認コマンド [#va7af9ed]
-- バイナリ+- Cert バイナリ
 openssl x509 -inform der -in cert.crt -text  openssl x509 -inform der -in cert.crt -text
-- Pem+- Cert Pem
 openssl x509 -in cert.pem -text  openssl x509 -in cert.pem -text
 +- CSR
 + openssl req -in csr.pem -text
#br #br


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
<今日>

オンライン状況

72 人のユーザが現在オンラインです。 (11 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 72

もっと...

アクセスカウンタ

今日 : 1047710477104771047710477
昨日 : 1615016150161501615016150
総計 : 2348977023489770234897702348977023489770234897702348977023489770
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com