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

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-08 12:01:32

所谓 batch 模式就是自动使用 -config 中的默认值,如果没有默认值则不询问的一种模式
 
[root@dhcp ~]# openssl req -new -config /usr/share/ssl/openssl.cnf -key my.key -batch > my.csr
Enter pass phrase for my.key:
[root@dhcp ~]#
 
[root@dhcp ~]# openssl req -text -in my.csr
Certificate Request:
    Data:
        Version: 0 (0x0)
        Subject: C=CN, ST=GD, L=GZ, O=GZNAP, OU=Maintenance,
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
            RSA Public Key: (1024 bit)
                Modulus (1024 bit):
                    00:d2:17:ad:e0:28:95:78:2c:23:b3:8b:bd:1e:00:
                    16:0d:8e:bd:ea:ea:63:91:f0:3a:96:12:28:99:f0:
                    9e:90:1d:be:39:b4:fa:1d:a2:c5:7e:06:57:41:4a:
                    23:79:37:69:17:5e:7d:af:0f:3b:63:c0:03:d9:1a:
                    f7:96:49:c9:59:86:8d:92:21:e2:01:0d:8b:60:9f:
                    45:fc:f7:5d:41:48:24:63:5b:10:43:4f:81:3d:3a:
                    42:1c:f1:67:48:6e:e1:2f:af:90:1f:85:8f:c2:e3:
                    f1:2e:73:fb:8f:64:21:f8:ac:2c:9e:29:ec:bb:8c:
                    9e:6f:d4:e5:31:64:f4:4b:ed
                Exponent: 65537 (0x10001)
        Attributes:
            a0:00
    Signature Algorithm: md5WithRSAEncryption
        05:8e:ab:42:bb:f7:0e:25:2c:bc:65:0d:0b:8a:3e:7f:52:15:
        00:6e:62:36:13:e8:06:f5:26:71:ea:2d:e3:21:0f:64:c1:c2:
        f5:77:34:56:b5:5e:84:d8:26:ff:66:0f:ee:aa:54:ab:ea:a4:
        3f:78:02:02:74:e4:29:28:72:d3:64:a6:3a:5c:cb:17:5b:16:
        84:02:05:a9:d9:93:c1:32:c0:bf:3a:6c:59:dd:4e:1b:3c:b8:
        9e:38:55:d0:a1:17:61:cd:66:c1:8b:ac:1f:07:ae:1d:5d:d0:
        b2:f1:9b:59:7a:2b:38:e2:96:46:de:f0:d1:5f:64:b4:da:5d:
        ff:06
-----BEGIN CERTIFICATE REQUEST-----
MIIBwjCCASsCAQAwgYExCzAJBgNVBAYTAkNOMQswCQYDVQQIEwJHRDELMAkGA1UE
BxMCR1oxDjAMBgNVBAoTBUdaTkFQMRQwEgYDVQQLEwtNYWludGVuYW5jZTEVMBMG
A1UEAxMMbWFpbC5ib2IuY29tMRswGQYJKoZIhvcNAQkBFgxhaWxtc0BxcS5jb20w
gZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANIXreAolXgsI7OLvR4AFg2Overq
Y5HwOpYSKJnwnpAdvjm0+h2ixX4GV0FKI3k3aRdefa8PO2PAA9ka95ZJyVmGjZIh
4gENi2CfRfz3XUFIJGNbEENPgT06QhzxZ0hu4S+vkB+Fj8Lj8S5z+49kIfisLJ4p
7LuMnm/U5TFk9EvtAgMBAAGgADANBgkqhkiG9w0BAQQFAAOBgQAFjqtCu/cOJSy8
ZQ0Lij5/UhUAbmI2E+gG9SZx6i3jIQ9kwcL1dzRWtV6E2Cb/Zg/uqlSr6qQ/eAIC
dOQpKHLTZKY6XMsXWxaEAgWp2ZPBMsC/OmxZ3U4bPLieOFXQoRdhzWbBi6wfB64d
XdCy8ZtZeis44pZG3vDRX2S02l3/Bg==
-----END CERTIFICATE REQUEST-----
[root@dhcp ~]#
阅读(1605) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~