mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #112662 from Iceber/fix_sample_apiserver_readme
sample-apiserver: create the client cert with SHA256
This commit is contained in:
commit
b30ff25fdb
@ -152,7 +152,7 @@ only this superuser group is authorized.
|
|||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
openssl req -out client.csr -new -newkey rsa:4096 -nodes -keyout client.key -subj "/CN=development/O=system:masters"
|
openssl req -out client.csr -new -newkey rsa:4096 -nodes -keyout client.key -subj "/CN=development/O=system:masters"
|
||||||
openssl x509 -req -days 365 -in client.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out client.crt
|
openssl x509 -req -days 365 -in client.csr -CA ca.crt -CAkey ca.key -set_serial 01 -sha256 -out client.crt
|
||||||
```
|
```
|
||||||
|
|
||||||
3. As curl requires client certificates in p12 format with password, do the conversion:
|
3. As curl requires client certificates in p12 format with password, do the conversion:
|
||||||
|
Loading…
Reference in New Issue
Block a user