IPsec certificate身份验证-openssl生成证书收藏
转载请注明出处: http://blog./zhangyang0402/archive/2010/05/27/
操作系统:Windows XP professional SP3
Openssl: 29
一、生成CA证书
1. 生成CA私钥
C:\demoCA>openssl genrsa -out 1024
Loading 'screen' into random state - done
Generating RSA private key, 1024 bit long modulus
............++++++
..............................++++++
e is 65537 (0x10001)
2. 生成CA证书请求
C:\demoCA>openssl req -new -key -out
Loading 'screen' into random state - done
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:CN
State or Province Name (full name) [Some-State]:Beijing
Locality Name (eg, city) []:Beijing
Organization Name (eg, company) [ Widgits Pty Ltd]:Intel
Organizational Unit Name (eg, section) []:IT
Common Name (eg, YOUR name) []:Yang Zhang
Email Address []:@
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:123456
An pany name []:
3. 自签名CA证书
C:\demoCA>openssl x509 -req -in -out -signkey -d
ertificate身份验证 来自淘豆网m.daumloan.com转载请标明出处.