Merge pull request #112662 from Iceber/fix_sample_apiserver_readme

sample-apiserver: create the client cert with SHA256
This commit is contained in:
Kubernetes Prow Robot 2023-02-07 07:01:01 -08:00 committed by GitHub
commit b30ff25fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ only this superuser group is authorized.
``` shell
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: