Skip to content

Commit 376acbe

Browse files
authored
doc: Add note about PKCS8 in etcd-json-schema.md
1 parent 906f89d commit 376acbe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

etcd-json-schema.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Example JSON config doc:
2020
- `certificate_file` is the name of a pem-format (public) cert to use for TLS server-auth, either an absolute path or a filename assumed to be in the same directory as the json config file itself.
2121
- A `certificate` attribute may be included _instead of_ `certificate_file`, whose value is an embedded string UTF-8 pem format certificate. This allows a single json doc to hold all of the necessary connection info.
2222
- `client_key_file` and `client_certificate_file` form an optional key/cert pair for TLS client-auth. Either may also be embedded in a similar way by instead including `client_key` and/or `client_certificate` string attributes.
23+
- Note that the private key must be PKCS8-encoded. PKCS1-encoded keys can be converted using openssl:
24+
25+
`openssl pkcs8 -topk8 -nocrypt -in pkcs1_key_file -out pkcs8_key.pem`
2326
- The `override_authority` attribute is optional and may be used to override the authority used for TLS hostname verification for _all_ endpoints.
2427

2528
Example with embedded (trunctated) TLS cert:
@@ -33,4 +36,4 @@ Example with embedded (trunctated) TLS cert:
3336
"certificate": "-----BEGIN CERTIFICATE-----\nMIIDaTCCA ... MP0u6J/xasx14IW4A==\n-----END CERTIFICATE-----\n",
3437
"override_authority": "etcd-development-01"
3538
}
36-
```
39+
```

0 commit comments

Comments
 (0)