flagflag  
5: 2017-02-18 (Sat) 11:22:01 macsatou source Cur: 2023-08-12 (Sat) 10:53:01 iseki source
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


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
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
Today

Who's Online

26 user(s) are online (2 user(s) are browsing xpwiki)

Members: 0
Guests: 26

more...

Access Counter

Today : 317317317
Yesterday : 5790579057905790
Total : 2365311323653113236531132365311323653113236531132365311323653113
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com