flagflag  
7: 2018-05-12 (Sat) 12:52:35 iseki 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]
-see https://http2.try-and-test.net/openssl1_​1_0.html -see https://http2.try-and-test.net/openssl1_​1_0.html
Line 8: Line 24:
 # 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] ***1.0.2o Install [#xfb04fab]
Line 26: Line 48:
 # make test  # make test
 # make install  # make install
 +- /etc/ld.so.conf に /usr/local/ssl/lib を追加して ldconfig を実行する.
#br #br
Line 39: 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

38 user(s) are online (4 user(s) are browsing xpwiki)

Members: 0
Guests: 38

more...

Access Counter

Today : 5466546654665466
Yesterday : 8599859985998599
Total : 2365247223652472236524722365247223652472236524722365247223652472
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com