在异类环境中保护文件传输
2009-07-12 08:34:57 来源:WEB开发网为根生成自签名的证书(有效期大约 10 年):
清单 2. 创建根证书
openssl x509 -req -days 3650 -in root_req.pem -signkey root_key.pem -out root_cert.pem
Signature ok
subject=/C=US/ST=TX/L=Austin/O=IBM/OU=AIX/CN=windows/emailAddress=windows@austin.ibm.com
Getting Private key
Enter pass phrase for root_key.pem:
可以用以下命令检查根证书,确保一切正常:
清单 3. 根证书
openssl x509 -in root_cert.pem -text -noout
Certificate:
Data:
Version: 1 (0x0)
Serial Number:
a3:fe:9c:32:97:5e:2b:6e
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=US, ST=TX, L=Austin, O=IBM, OU=AIX,
CN=windows/emailAddress=windows@austin.ibm.com
Validity
Not Before: Nov 12 19:54:40 2008 GMT
Not After : Nov 10 19:54:40 2018 GMT
Subject: C=US, ST=TX, L=Austin, O=IBM, OU=AIX,
CN=windows/emailAddress=windows@austin.ibm.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (2048 bit)
Modulus (2048 bit):
00:da:6f:db:90:e2:ab:31:92:21:1e:a0:11:13:a9:
6e:00:1a:a5:69:cf:29:8f:60:7c:a0:08:ea:c9:0f:
b2:81:c2:84:6b:a0:4f:9e:12:bf:99:2d:30:60:c4:
e4:c5:f8:2b:db:cd:9b:fc:5e:fe:fb:d8:a0:1c:26:
83:fd:ad:c5:6f:cf:32:70:f8:77:45:cd:f7:7d:a6:
65:5b:5d:82:d3:06:74:b8:0e:4e:d9:e4:63:6f:0a:
d1:11:ea:b0:d0:cf:ae:68:2f:e3:5e:17:fc:a6:49:
c8:db:73:6c:e5:61:1b:8d:22:0d:46:54:9c:79:16:
b1:1b:2b:ef:c1:7b:3c:91:79:56:69:e8:fe:8e:33:
46:6a:cc:17:cb:33:6f:38:6d:5d:f9:5a:57:2f:39:
fb:ca:f6:d2:a0:3b:29:08:c0:ed:d0:bc:31:21:0d:
15:72:9b:c2:ac:fc:1d:f8:a0:d6:9c:16:19:43:11:
2a:fb:86:d8:c5:e8:66:11:2d:c9:96:9f:23:1f:ae:
92:5a:6b:97:98:48:a5:a6:61:67:2b:8d:6b:90:c2:
df:ac:78:57:c5:25:85:bc:ab:30:2e:65:f3:4e:bb:
7d:a0:33:82:d8:f8:0c:7c:b2:a8:80:e6:9c:85:ec:
77:3c:67:26:10:3a:9d:4b:9f:57:73:44:c2:d3:af:
d6:93
Exponent: 65537 (0x10001)
Signature Algorithm: sha1WithRSAEncryption
6b:01:12:d5:91:3f:79:8d:c2:50:e0:ff:bf:52:fd:f0:93:44:
dc:c4:ef:5c:f6:4c:71:76:bf:b8:18:32:2b:f3:dd:85:bf:ad:
14:6c:2b:df:a6:06:37:38:c8:5c:3f:bf:a4:39:09:7c:ae:a5:
04:dc:a4:73:4a:b7:db:10:47:c7:c9:c5:65:21:28:01:64:5d:
9e:65:70:05:0a:59:6f:4a:80:53:b0:60:4e:03:6a:ff:c3:69:
a6:91:fb:1d:95:38:c4:e3:85:21:0a:3b:17:7f:7d:3e:4a:40:
45:ea:61:ba:fa:a3:2f:13:20:88:e1:43:5e:0b:96:3a:77:df:
ca:06:40:f5:09:cc:dd:10:dc:c7:bb:c6:cf:40:8f:e6:5b:e9:
2d:2f:01:6c:49:11:18:ff:89:82:a7:06:15:c9:af:84:19:0f:
04:b7:e8:d9:a6:f2:88:33:6e:cd:ed:bd:ec:72:f2:52:89:33:
07:93:ab:2f:93:50:07:1e:6a:1a:10:b4:61:08:09:11:03:47:
29:4d:d9:86:82:79:d5:c6:0e:f2:3e:4d:e6:7c:0a:15:bd:74:
2a:57:13:b4:aa:69:93:37:74:b0:f6:2b:77:08:cb:ee:77:d3:
33:35:dc:5d:c2:67:97:ec:9c:e7:88:14:e3:06:74:3e:84:42:
36:fe:3b:b8
更多精彩
赞助商链接