Update README.md

master
Dee Koder 8 years ago committed by GitHub
parent a53b909fcd
commit c6e76160ad
  1. 12
      docs/tls/README.md

@ -23,9 +23,7 @@ You need to download [generate_cert.go](https://golang.org/src/crypto/tls/genera
`generate_cert.go` already provides SAN certificates with DNS and IP entries: `generate_cert.go` already provides SAN certificates with DNS and IP entries:
```sh ```sh
go run generate_cert.go -ca --host "10.10.0.3" go run generate_cert.go -ca --host "10.10.0.3"
``` ```
#### With OpenSSL: #### With OpenSSL:
@ -33,17 +31,13 @@ go run generate_cert.go -ca --host "10.10.0.3"
Generate the private key: Generate the private key:
```sh ```sh
openssl genrsa -out private.key 1024 openssl genrsa -out private.key 1024
``` ```
Generate the self-signed certificate: Generate the self-signed certificate:
```sh ```sh
openssl req -new -x509 -days 3650 -key private.key -out public.crt -subj "/C=country/ST=state/L=location/O=organization/CN=domain" openssl req -new -x509 -days 3650 -key private.key -out public.crt -subj "/C=country/ST=state/L=location/O=organization/CN=domain"
``` ```
### Windows ### Windows
@ -57,9 +51,7 @@ Download and decompress the Windows version of GnuTLS from [here](http://www.gnu
Make sure to add extracted GnuTLS binary path to your system path. Make sure to add extracted GnuTLS binary path to your system path.
``` ```
setx path "%path%;C:\Users\MyUser\Downloads\gnutls-3.4.9-w64\bin" setx path "%path%;C:\Users\MyUser\Downloads\gnutls-3.4.9-w64\bin"
``` ```
You may need to restart your powershell console for this to take affect. You may need to restart your powershell console for this to take affect.
@ -69,9 +61,7 @@ You may need to restart your powershell console for this to take affect.
Run the following command to create `private.key` Run the following command to create `private.key`
``` ```
certtool.exe --generate-privkey --outfile private.key certtool.exe --generate-privkey --outfile private.key
``` ```
#### Generate public.crt #### Generate public.crt
@ -121,9 +111,7 @@ encryption_key
Generate public certificate Generate public certificate
``` ```
certtool.exe --generate-self-signed --load-privkey private.key --template cert.cnf --outfile public.crt certtool.exe --generate-self-signed --load-privkey private.key --template cert.cnf --outfile public.crt
``` ```
## 3. Configure Minio with the generated certificate ## 3. Configure Minio with the generated certificate

Loading…
Cancel
Save