Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1798580
  • 博文数量: 184
  • 博客积分: 10122
  • 博客等级: 上将
  • 技术积分: 5566
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-08 12:32
文章存档

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-08 11:59:39

[root@dhcp ~]# cat my.csr
-----BEGIN CERTIFICATE REQUEST-----
MIIBwTCCASoCAQAwgYAxCzAJBgNVBAYTAkNOMQswCQYDVQQIEwJHRDELMAkGA1UE
BxMCR1oxDDAKBgNVBAoTA05BUDEVMBMGA1UECxMMTWFpbnRlbmFpbmNlMRUwEwYD
VQQDEwxtYWlsLmJvYi5jb20xGzAZBgkqhkiG9w0BCQEWDGFpbG1zQHFxLmNvbTCB
nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0het4CiVeCwjs4u9HgAWDY696upj
kfA6lhIomfCekB2+ObT6HaLFfgZXQUojeTdpF159rw87Y8AD2Rr3lknJWYaNkiHi
AQ2LYJ9F/PddQUgkY1sQQ0+BPTpCHPFnSG7hL6+QH4WPwuPxLnP7j2Qh+Kwsnins
u4yeb9TlMWT0S+0CAwEAAaAAMA0GCSqGSIb3DQEBBAUAA4GBABpJQ2/+DhzOLwt3
e3o1Wlqi5BRgYCIzCrUB98tfB60bMrqeuYJvHPhARpcJz2LkcaWyikrlW/Sa8wGu
2aBNG+DNj1Dic1ovRrWblAyWSUsOmnWpt7PO21p0PICKpVY01YKYlHsjMmVzT14N
BOBPOxoWIwn7i7rsP5g9s3oRm8OM
-----END CERTIFICATE REQUEST-----
[root@dhcp ~]#
 
[root@dhcp ~]# openssl req -in my.csr -x509 -key my.key -passin file:a -out my.crt
[root@dhcp ~]#
 
 
[root@dhcp ~]# cat my.crt
-----BEGIN CERTIFICATE-----
MIIDWTCCAsKgAwIBAgIBADANBgkqhkiG9w0BAQQFADCBgDELMAkGA1UEBhMCQ04x
CzAJBgNVBAgTAkdEMQswCQYDVQQHEwJHWjEMMAoGA1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