mirror of https://github.com/istio/istio.io.git
use sha256 (#9981)
This commit is contained in:
parent
db94cfd5bb
commit
7dbf1b0d1f
|
@ -32,7 +32,7 @@ For this task you can use your favorite tool to generate certificates and keys.
|
|||
|
||||
{{< text bash >}}
|
||||
$ openssl req -out nginx.example.com.csr -newkey rsa:2048 -nodes -keyout nginx.example.com.key -subj "/CN=nginx.example.com/O=some organization"
|
||||
$ openssl x509 -req -days 365 -CA example.com.crt -CAkey example.com.key -set_serial 0 -in nginx.example.com.csr -out nginx.example.com.crt
|
||||
$ openssl x509 -req -sha256 -days 365 -CA example.com.crt -CAkey example.com.key -set_serial 0 -in nginx.example.com.csr -out nginx.example.com.crt
|
||||
{{< /text >}}
|
||||
|
||||
## Deploy an NGINX server
|
||||
|
|
|
@ -26,7 +26,7 @@ openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -subj '/O=example In
|
|||
|
||||
snip_generate_client_and_server_certificates_and_keys_2() {
|
||||
openssl req -out nginx.example.com.csr -newkey rsa:2048 -nodes -keyout nginx.example.com.key -subj "/CN=nginx.example.com/O=some organization"
|
||||
openssl x509 -req -days 365 -CA example.com.crt -CAkey example.com.key -set_serial 0 -in nginx.example.com.csr -out nginx.example.com.crt
|
||||
openssl x509 -req -sha256 -days 365 -CA example.com.crt -CAkey example.com.key -set_serial 0 -in nginx.example.com.csr -out nginx.example.com.crt
|
||||
}
|
||||
|
||||
snip_deploy_an_nginx_server_1() {
|
||||
|
|
Loading…
Reference in New Issue