Hello
I try to use TLS.
I use windows10 WSL(ubuntu 18.04)
[Decoder]: Using assembly version of decoder
I0214 01:23:05.240334 1022 init.go:98]
Dgraph version : v1.2.1
Dgraph SHA-256 : 3f18ff84570b2944f4d75f6f508d55d902715c7ca2310799cc2991064eb046f8
Commit SHA-1 : ddcda9296
Commit timestamp : 2020-02-06 15:31:05 -0800
Branch : HEAD
Go version : go1.13.5
$ ls
Server_output.txt Zero_output.txt badger dgraph dgraph-linux-amd64.tar.gz dgraph-ratel serverS zeroSingle
sudo ./dgraph cert
sudo ./dgraph cert -n localhost,127.0.0.1
sudo ./dgraph cert -c dgraphuser
sudo ./dgraph cert ls
[Decoder]: Using assembly version of decoder
-rw-r–r-- ca.crt - Dgraph Root CA certificate
Issuer: Dgraph Labs, Inc.
S/N: 5ee9be84c8c06852
Expiration: 11 Feb 30 23:03 UTC
SHA-256 Digest: C0F0BE6B 22B6EE6B 6DABD310 A20ECBDD 6CCECDF8 0460F7B5 0BE48BB9 581270A4
-r-------- ca.key - Dgraph Root CA key
Algorithm: RSA 2048 bits (PKCS#1)
SHA-256 Digest: C0F0BE6B 22B6EE6B 6DABD310 A20ECBDD 6CCECDF8 0460F7B5 0BE48BB9 581270A4
-rw-r–r-- client.dgraphuser.crt - Dgraph client certificate: dgraphuser
Issuer: Dgraph Labs, Inc.
CA Verify: PASSED
S/N: 6f43912b27790848
Expiration: 12 Feb 25 23:03 UTC
SHA-256 Digest: CA3E8607 87751E13 1EB5E2EA 305CCC82 50BC1E67 9AEA5E90 41EDCD47 29085718
-rw------- client.dgraphuser.key - Dgraph Client key
Algorithm: RSA 2048 bits (PKCS#1)
SHA-256 Digest: CA3E8607 87751E13 1EB5E2EA 305CCC82 50BC1E67 9AEA5E90 41EDCD47 29085718
-rw-r–r-- node.crt - Dgraph Node certificate
Issuer: Dgraph Labs, Inc.
CA Verify: PASSED
S/N: 6fd83332a9bee348
Expiration: 12 Feb 25 23:03 UTC
Hosts: 127.0.0.1, localhost
SHA-256 Digest: B492519E 2F379630 1734352E 2E6AA84E 1AA185D7 75F6266F D795799B 13B8B170
-rw------- node.key - Dgraph Node key
Algorithm: RSA 2048 bits (PKCS#1)
SHA-256 Digest: B492519E 2F379630 1734352E 2E6AA84E 1AA185D7 75F6266F D795799B 13B8B170
It’s ok:
sudo ./dgraph zero --my=localhost:5080 -w zeroSingle |& tee -a Zero_output.txt
Then I trying to start alpha:
sudo ./dgraph alpha --tls_client_auth VERIFYIFGIVEN --my=localhost:8080 --lru_mb=3512 --zero=localhost:5080 --tls_dir tls -p serverS/p -w serverS/w -o 0 |& tee -a Server_output.txt
OR
dgraph alpha --tls_dir tls
2020/02/14 02:07:52 http: TLS handshake error from 127.0.0.1:43101: tls: first record does not look like a TLS handshake
2020/02/14 02:07:52 http: TLS handshake error from 127.0.0.1:43102: tls: first record does not look like a TLS handshake
2020/02/14 02:07:52 http: TLS handshake error from 127.0.0.1:43103: tls: first record does not look like a TLS handshake
2020/02/14 02:07:52 http: TLS handshake error from 127.0.0.1:43104: tls: first record does not look like a TLS handshake
2020/02/14 02:07:52 http: TLS handshake error from 127.0.0.1:43105: tls: first record does not look like a TLS handshake
2020/02/14 02:07:52 http: TLS handshake error from 127.0.0.1:43106: tls: first record does not look like a TLS handshake
Could you tell me what I’m doing wrong here?