You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CN: Common Name C: Country L: Locality O: Organization Name OU: Organization Unit Name ST: State
执行命令
$ cfssl gencert -initca csr.json2016/08/01 23:21:46 [INFO] generating a new CA key and certificate from CSR2016/08/01 23:21:46 [INFO] generate received request2016/08/01 23:21:46 [INFO] received CSR2016/08/01 23:21:46 [INFO] generating key: ecdsa-2562016/08/01 23:21:46 [INFO] encoded CSR2016/08/01 23:21:46 [INFO] signed certificate with serial number 383554376491257930289138538887168576708201738251
{"cert":"-----BEGIN CERTIFICATE-----\nMIICVDCCAfmgAwIBAgIUQy8sTv8g7ksr6DnCtbz4f4OA8AswCgYIKoZIzj0EAwIw\ndzELMAkGA1UEBhMCQ04xETAPBgNVBAgTCFNoYW5naGFpMREwDwYDVQQHEwhTaGFu\nZ2hhaTEZMBcGA1UEChMQWmhvdWhhaWJpbmcsIEluYzENMAsGA1UECxMEQmxvZzEY\nMBYGA1UEAxMPemhvdWhhaWJpbmcuY29tMB4XDTE2MDgwMTE1MTcwMFoXDTIxMDcz\nMTE1MTcwMFowdzELMAkGA1UEBhMCQ04xETAPBgNVBAgTCFNoYW5naGFpMREwDwYD\nVQQHEwhTaGFuZ2hhaTEZMBcGA1UEChMQWmhvdWhhaWJpbmcsIEluYzENMAsGA1UE\nCxMEQmxvZzEYMBYGA1UEAxMPemhvdWhhaWJpbmcuY29tMFkwEwYHKoZIzj0CAQYI\nKoZIzj0DAQcDQgAE/6XcKgm+e2RoXBIzE2apNbJgrU6OOfLwl++YMXAiYfYYkwTz\nC6nVLQkblE7MqdhB62U2yaQ4eVhU7LGTw+cdA6NjMGEwDgYDVR0PAQH/BAQDAgEG\nMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFP4ULg1NyWJGy1WWS5QnddqvJFA/\nMB8GA1UdIwQYMBaAFP4ULg1NyWJGy1WWS5QnddqvJFA/MAoGCCqGSM49BAMCA0kA\nMEYCIQC6LfkqcT6DUmIdRVVwKVwsrnKzi+twXK6QmO4crC+2nwIhAIEO06GTWY+n\neV50MnRaDsyOQaELTUxaD8WHi2ajzcf3\n-----END CERTIFICATE-----\n","csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIIBYzCCAQoCAQAwdzELMAkGA1UEBhMCQ04xETAPBgNVBAgTCFNoYW5naGFpMREw\nDwYDVQQHEwhTaGFuZ2hhaTEZMBcGA1UEChMQWmhvdWhhaWJpbmcsIEluYzENMAsG\nA1UECxMEQmxvZzEYMBYGA1UEAxMPemhvdWhhaWJpbmcuY29tMFkwEwYHKoZIzj0C\nAQYIKoZIzj0DAQcDQgAE/6XcKgm+e2RoXBIzE2apNbJgrU6OOfLwl++YMXAiYfYY\nkwTzC6nVLQkblE7MqdhB62U2yaQ4eVhU7LGTw+cdA6AxMC8GCSqGSIb3DQEJDjEi\nMCAwHgYDVR0RBBcwFYITd3d3Lnpob3VoYWliaW5nLmNvbTAKBggqhkjOPQQDAgNH\nADBEAiAef5tC9tDN/jCxUrykrzgsuovo2gII4lF62k+xvs69pwIgRn2sZxyqgXl6\nnEoHIqkCfj/hFgIKycDff6ewpRq7vjU=\n-----END CERTIFICATE REQUEST-----\n","key":"-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIH5fA3JMrlg2gaIWtnRFGSNtVuOgfaa2VhkhCyKLlq8foAoGCCqGSM49\nAwEHoUQDQgAE/6XcKgm+e2RoXBIzE2apNbJgrU6OOfLwl++YMXAiYfYYkwTzC6nV\nLQkblE7MqdhB62U2yaQ4eVhU7LGTw+cdAw==\n-----END EC PRIVATE KEY-----\n"}
$ cfssl gencert -initca -ca-key key.pem csr.json2016/08/01 23:36:12 [INFO] re-generate a CA certificate from CSR and CA key2016/08/01 23:36:12 [INFO] encoded CSR2016/08/01 23:36:12 [INFO] signed certificate with serial number 641077971872565793088226430583424274397423810453
{"cert":"-----BEGIN CERTIFICATE-----\nMIICVDCCAfmgAwIBAgIU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cDQgAE/6XcKgm+e2RoXBIzE2apNbJgrU6OOfLwl++YMXAiYfYY\nkwTzC6nVLQkblE7MqdhB62U2yaQ4eVhU7LGTw+cdA6AxMC8GCSqGSIb3DQEJDjEi\nMCAwHgYDVR0RBBcwFYITd3d3Lnpob3VoYWliaW5nLmNvbTAKBggqhkjOPQQDAgNI\nADBFAiEAxqwHACB/nfPO3yHoLj7xb+LOdnfi4BzGsW5xBSWvzr8CICJ1tqaNptKP\nr1vJRt5cqpcyP0UDPVN5x50G5g/BXKfg\n-----END CERTIFICATE REQUEST-----\n"}
使用原来的ca和key重新生成
$ cfssl gencert -renewca -ca cert.pem -ca-key key.pem2016/08/01 23:34:16 [INFO] re-generate a CA certificate from CA cert and key2016/08/01 23:34:16 [INFO] encoded CSR2016/08/01 23:34:16 [INFO] signed certificate with serial number 322373581305156619060220203161310979586448733394{"cert":"-----BEGIN CERTIFICATE-----\nMIICUzCCAfmgAwIBAgIUOHe7OTJHby5l65pDjtG1upFwtNIwCgYIKoZIzj0EAwIw\ndzELMAkGA1UEBhMCQ04xETAPBgNVBAgTCFNoYW5naGFpMREwDwYDVQQHEwhTaGFu\nZ2hhaTEZMBcGA1UEChMQWmhvdWhhaWJpbmcsIEluYzENMAsGA1UECxMEQmxvZzEY\nMBYGA1UEAxMPemhvdWhhaWJpbmcuY29tMB4XDTE2MDgwMTE1MjkwMFoXDTIxMDcz\nMTE1MjkwMFowdzELMAkGA1UEBhMCQ04xETAPBgNVBAgTCFNoYW5naGFpMREwDwYD\nVQQHEwhTaGFuZ2hhaTEZMBcGA1UEChMQWmhvdWhhaWJpbmcsIEluYzENMAsGA1UE\nCxMEQmxvZzEYMBYGA1UEAxMPemhvdWhhaWJpbmcuY29tMFkwEwYHKoZIzj0CAQYI\nKoZIzj0DAQcDQgAE/6XcKgm+e2RoXBIzE2apNbJgrU6OOfLwl++YMXAiYfYYkwTz\nC6nVLQkblE7MqdhB62U2yaQ4eVhU7LGTw+cdA6NjMGEwDgYDVR0PAQH/BAQDAgEG\nMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFP4ULg1NyWJGy1WWS5QnddqvJFA/\nMB8GA1UdIwQYMBaAFP4ULg1NyWJGy1WWS5QnddqvJFA/MAoGCCqGSM49BAMCA0gA\nMEUCIQDDNOgXKJdq2QuT0MUH7WSWFvPJx0/1YzoKdp+ljHb2BQIgSmnX7hARr0Cd\n2xuSYEXik0RwteIEkEbkdqfxMSxWCx4=\n-----END CERTIFICATE-----\n"}
$ cfssl certinfo -domain github.com
{"subject":{"common_name":"github.com","serial_number":"5157550","country":"US","organization":"GitHub, Inc.","locality":"San Francisco","province":"California","street_address":"88 Colin P Kelly, Jr Street","postal_code":"94107","names":["Private Organization","US","Delaware","5157550","88 Colin P Kelly, Jr Street","94107","US","California","San Francisco","GitHub, Inc.","github.com"]},"issuer":{"common_name":"DigiCert SHA2 Extended Validation Server CA","country":"US","organization":"DigiCert Inc","organizational_unit":"www.digicert.com","names":["US","DigiCert Inc","www.digicert.com","DigiCert SHA2 Extended Validation Server CA"]},"serial_number":"15938810608981134066197160231674485287","sans":["github.com","www.github.com"],"not_before":"2016-03-10T00:00:00Z","not_after":"2018-05-17T12:00:00Z","sigalg":"SHA256WithRSA","authority_key_id":"3D:D3:50:A5:D6:A0:AD:EE:F3:4A:60:A:65:D3:21:D4:F8:F8:D6:F","subject_key_id":"88:5C:48:67:19:CC:A0:76:59:2D:11:79:C3:BE:A2:AC:87:22:27:5B","pem":"-----BEGIN CERTIFICATE-----\nMIIHeTCCBmGgAwIBAgIQC/20CQrXteZAwwsWyVKaJzANBgkqhkiG9w0BAQsFADB1\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\nd3cuZGlnaWNlcnQuY29tMTQwMgYDVQQDEytEaWdpQ2VydCBTSEEyIEV4dGVuZGVk\nIFZhbGlkYXRpb24gU2VydmVyIENBMB4XDTE2MDMxMDAwMDAwMFoXDTE4MD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53cuTMF/QssxItPGNP5/OT9Aj1BxA/NofWZKh4ufV7cz3pY\nRDS4BF+EEFQ4l5GY+yp4WJA/xSvYsTHWeWxRD1/nl62/Rd9FN2NkacRVozCxRVle\nFrBHTFxqIP6kDnxiLElBrZngtY07ietaYZVLQN/ETyqLQftsf8TecwTklbjvm8NT\nJqbaIVifYwqwNN+4lRxS3F5lNlA/il12IOgbRioLI62o8G0DaEUQgHNf8vSG\n-----END CERTIFICATE-----\n"}
The text was updated successfully, but these errors were encountered:
cfssl是cloudflare提供的开源的PKI解决方案.
安装
$ go get -u github.com/cloudflare/cfssl/cmd/...
生成cert
准备CSR(certificate signing request)
创建一个文件
csr.json
包含下面的内容:术语介绍:
CN
: Common NameC
: CountryL
: LocalityO
: Organization NameOU
: Organization Unit NameST
: State执行命令
Certificate(保存为cert.pem)
CSR(保存为csr.pem)
Key(保存为key.pem)
使用原来的key重新生成
使用原来的ca和key重新生成
生成Key
使用上面相同的csr.json文件, 执行以下命令:
查看cert信息
$ cfssl certinfo -cert cert.pem {"subject":{"common_name":"zhouhaibing.com","country":"CN","organization":"Zhouhaibing, Inc","organizational_unit":"Blog","locality":"Shanghai","province":"Shanghai","names":["CN","Shanghai","Shanghai","Zhouhaibing, Inc","Blog","zhouhaibing.com"]},"issuer":{"common_name":"zhouhaibing.com","country":"CN","organization":"Zhouhaibing, Inc","organizational_unit":"Blog","locality":"Shanghai","province":"Shanghai","names":["CN","Shanghai","Shanghai","Zhouhaibing, Inc","Blog","zhouhaibing.com"]},"serial_number":"383554376491257930289138538887168576708201738251","not_before":"2016-08-01T15:17:00Z","not_after":"2021-07-31T15:17:00Z","sigalg":"ECDSAWithSHA256","authority_key_id":"FE:14:2E:D:4D:C9:62:46:CB:55:96:4B:94:27:75:DA:AF:24:50:3F","subject_key_id":"FE:14:2E:D:4D:C9:62:46:CB:55:96:4B:94:27:75:DA:AF:24:50:3F","pem":"-----BEGIN CERTIFICATE-----\nMIICVDCCAfmgAwIBAgIUQy8sTv8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cKgm+e2RoXBIzE2apNbJgrU6OOfLwl++YMXAiYfYYkwTzC6nVLQkblE7MqdhB62U2yaQ4eVhU7LGTw+cdA6AxMC8GCSqGSIb3DQEJDjEiMCAwHgYDVR0RBBcwFYITd3d3Lnpob3VoYWliaW5nLmNvbTAKBggqhkjOPQQDAgNHADBEAiAef5tC9tDN/jCxUrykrzgsuovo2gII4lF62k+xvs69pwIgRn2sZxyqgXl6nEoHIqkCfj/hFgIKycDff6ewpRq7vjU=","RawTBSCertificateRequest":"MIIBCgIBADB3MQswCQYDVQQGEwJDTjERMA8GA1UECBMIU2hhbmdoYWkxETAPBgNVBAcTCFNoYW5naGFpMRkwFwYDVQQKExBaaG91aGFpYmluZywgSW5jMQ0wCwYDVQQLEwRCbG9nMRgwFgYDVQQDEw96aG91aGFpYmluZy5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT/pdwqCb57ZGhcEjMTZqk1smCtTo458vCX75gxcCJh9hiTBPMLqdUtCRuUTsyp2EHrZTbJpDh5WFTssZPD5x0DoDEwLwYJKoZIhvcNAQkOMSIwIDAeBgNVHREEFzAVghN3d3cuemhvdWhhaWJpbmcuY29t","RawSubjectPublicKeyInfo":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE/6XcKgm+e2RoXBIzE2apNbJgrU6OOfLwl++YMXAiYfYYkwTzC6nVLQkblE7MqdhB62U2yaQ4eVhU7LGTw+cdAw==","RawSubject":"MHcxCzAJBgNVBAYTAkNOMREwDwYDVQQIEwhTaGFuZ2hhaTERMA8GA1UEBxMIU2hhbmdoYWkxGTAXBgNVBAoTEFpob3VoYWliaW5nLCBJbmMxDTALBgNVBAsTBEJsb2cxGDAWBgNVBAMTD3pob3VoYWliaW5nLmNvbQ==","Version":0,"Signature":"MEQCIB5/m0L20M3+MLFSvKSvOCy6i+jaAgjiUXraT7G+zr2nAiBGfaxnHKqBeXqcSgciqQJ+P+EWAgrJwN9/p7ClGru+NQ==","SignatureAlgorithm":10,"PublicKeyAlgorithm":3,"PublicKey":{"Curve":{"P":1.1579208921035625e+77,"N":1.1579208921035625e+77,"B":4.105836372515214e+76,"Gx":4.8439561293906455e+76,"Gy":3.6134250956749796e+76,"BitSize":256,"Name":"P-256"},"X":1.1563282567196158e+77,"Y":1.1115269044001543e+76},"Subject":{"Country":["CN"],"Organization":["Zhouhaibing, Inc"],"OrganizationalUnit":["Blog"],"Locality":["Shanghai"],"Province":["Shanghai"],"StreetAddress":null,"PostalCode":null,"SerialNumber":"","CommonName":"zhouhaibing.com","Names":[{"Type":[2,5,4,6],"Value":"CN"},{"Type":[2,5,4,8],"Value":"Shanghai"},{"Type":[2,5,4,7],"Value":"Shanghai"},{"Type":[2,5,4,10],"Value":"Zhouhaibing, Inc"},{"Type":[2,5,4,11],"Value":"Blog"},{"Type":[2,5,4,3],"Value":"zhouhaibing.com"}],"ExtraNames":null},"Attributes":[{"Type":[1,2,840,113549,1,9,14],"Value":[[{"Type":[2,5,29,17],"Value":"MBWCE3d3dy56aG91aGFpYmluZy5jb20="}]]}],"Extensions":[{"Id":[2,5,29,17],"Critical":false,"Value":"MBWCE3d3dy56aG91aGFpYmluZy5jb20="}],"ExtraExtensions":null,"DNSNames":["www.zhouhaibing.com"],"EmailAddresses":null,"IPAddresses":null}
查看其它host的cert
$ cfssl certinfo -domain github.com {"subject":{"common_name":"github.com","serial_number":"5157550","country":"US","organization":"GitHub, Inc.","locality":"San Francisco","province":"California","street_address":"88 Colin P Kelly, Jr Street","postal_code":"94107","names":["Private Organization","US","Delaware","5157550","88 Colin P Kelly, Jr Street","94107","US","California","San Francisco","GitHub, Inc.","github.com"]},"issuer":{"common_name":"DigiCert SHA2 Extended Validation Server CA","country":"US","organization":"DigiCert Inc","organizational_unit":"www.digicert.com","names":["US","DigiCert Inc","www.digicert.com","DigiCert SHA2 Extended Validation Server CA"]},"serial_number":"15938810608981134066197160231674485287","sans":["github.com","www.github.com"],"not_before":"2016-03-10T00:00:00Z","not_after":"2018-05-17T12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KZ6y7T0/7xAAAAVNh\niennAAAEAwBHMEUCIQDZpd5S+3to8k7lcDeWBhiJASiYTk2rNAT26lVaM3xhWwIg\nNUqrkIODZpRg+khhp8ag65B8mu0p4JUAmkRDbiYnRvYAdwBWFAaaL9fC7NP14b1E\nsj7HRna5vJkRXMDvlJhV1onQ3QAAAVNhieqZAAAEAwBIMEYCIQDnm3WStlvE99GC\nizSx+UGtGmQk2WTokoPgo1hfiv8zIAIhAPrYeXrBgseA9jUWWoB4IvmcZtshjXso\nnT8MIG1u1zF8MA0GCSqGSIb3DQEBCwUAA4IBAQCLbNtkxuspqycq8h1EpbmAX0wM\n5DoW7hM/FVdz4LJ3Kmftyk1yd8j/PSxRrAQN2Mr/frKeK8NE1cMji32mJbBqpWtK\n/+wC+avPplBUbNpzP53cuTMF/QssxItPGNP5/OT9Aj1BxA/NofWZKh4ufV7cz3pY\nRDS4BF+EEFQ4l5GY+yp4WJA/xSvYsTHWeWxRD1/nl62/Rd9FN2NkacRVozCxRVle\nFrBHTFxqIP6kDnxiLElBrZngtY07ietaYZVLQN/ETyqLQftsf8TecwTklbjvm8NT\nJqbaIVifYwqwNN+4lRxS3F5lNlA/il12IOgbRioLI62o8G0DaEUQgHNf8vSG\n-----END CERTIFICATE-----\n"}
The text was updated successfully, but these errors were encountered: