Skip to content

Commit

Permalink
Fix 5min files
Browse files Browse the repository at this point in the history
  • Loading branch information
claucece committed May 16, 2020
1 parent 2725cfc commit ad00b62
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
6 changes: 3 additions & 3 deletions initca/testdata/5min-ed25519-key.pem
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIG/VRJdTiyyr1kFqvTqHXZCQi7dWx0USgGaR0KGp0bH2
-----END PRIVATE KEY-----
-----BEGIN Ed25519 PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIO23h+PSszCu1BdPNn2HnmPexKh9p3HA3QxTOZ3cXQqx
-----END Ed25519 PRIVATE KEY-----
16 changes: 8 additions & 8 deletions initca/testdata/5min-ed25519.pem
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
-----BEGIN CERTIFICATE-----
MIIB+zCCAa2gAwIBAgIUXprDD6GXGy8o4SSWTv9YJTGh4fgwBQYDK2VwMHoxCzAJ
MIIB+DCCAaqgAwIBAgIUa7gAfTYxGHeXpbZBr25VR3IlEkAwBQYDK2VwMHoxCzAJ
BgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJh
bmNpc2NvMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMSMwIQYDVQQLExpUZXN0
IENlcnRpZmljYXRlIEF1dGhvcml0eTAeFw0xOTExMjQwOTQ5MDBaFw0xOTExMjQw
OTU0MDBaMHoxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYD
IENlcnRpZmljYXRlIEF1dGhvcml0eTAeFw0yMDA1MTYwNjE3MDBaFw0yMDA1MTYw
NjIyMDBaMHoxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYD
VQQHEw1TYW4gRnJhbmNpc2NvMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMSMw
IQYDVQQLExpUZXN0IENlcnRpZmljYXRlIEF1dGhvcml0eTAqMAUGAytlcAMhAGFr
Lxc8RHfl6uZiKV+twIGuEyCn0fOCaoUp83OGkNr4o0UwQzAOBgNVHQ8BAf8EBAMC
AQYwEgYDVR0TAQH/BAgwBgEB/wIBAjAdBgNVHQ4EFgQUBW6ujHututTlYhgJldt4
4hZj7v4wBQYDK2VwA0EAR/HVrKk/aeWynnFNM+yzuV54m1cbSj30UclwixXvWCE6
9+MaSad+yNXi4UuPJir7VeHMaBRwLaucsrMArao+AQ==
IQYDVQQLExpUZXN0IENlcnRpZmljYXRlIEF1dGhvcml0eTAqMAUGAytlcAMhAFYw
MXENHjM4ubp76CZbd8PNJEc5ElerX/gYhrACB6GNo0IwQDAOBgNVHQ8BAf8EBAMC
AQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUQIiayHREptI7YAr87AMfj8qB
Tl8wBQYDK2VwA0EAnH3WcTatTHQ/jfCjVwsDmB+1SUoUz9mlPuttW+ZgVOAxTaQ3
pdbTDE0jKRZI/8fjf6BTwkGqodDAfHojdcEUCA==
-----END CERTIFICATE-----
13 changes: 11 additions & 2 deletions initca/testdata/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
1. To generate 5min-rsa.pem and 5min-rsa-key.pem

```
$ cfssl gencert -initca ca_csr_rsa.json | cfssljson -bare 5min-rsa
```

2. To generate 5min-ecdsa.pem and 5min-ecdsa-key.pem

```
$ cfssl gencert -initca ca_csr_ecdsa.json | cfssljson -bare 5min-ecdsa
```

The above commands will generate 5min-rsa.csr and 5min-ecdsa.csr as well, but those
files can be ignored.
2. To generate 5min-ed25519.pem and 5min-ed25519-key.pem

```
$ cfssl gencert -initca ca_csr_ed25519.json | cfssljson -bare 5min-ed25519
```

The above commands will generate 5min-rsa.csr, 5min-ecdsa.csr 5min-ed25519.csr
accordingly, but those files can be ignored.
2 changes: 1 addition & 1 deletion initca/testdata/ca_csr_ed25519.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"key": {
"algo": "ed25519"
"algo": "ed25519",
"size": 256
},
"names": [
Expand Down

0 comments on commit ad00b62

Please sign in to comment.