valyala / httpteleport

Transfer 10Gbps http traffic over 1Gbps networks :)
MIT License
458 stars 38 forks source link

Getting this error #11

Open gitmko0 opened 4 years ago

gitmko0 commented 4 years ago

fastrpc.Server: error on connection "123.123.123.123:80"<->"234.324.234.324:43202": error in handshake: error in TLS handshake: remote error: tls: bad certificate

i've tried many self signed cert and always get this issue.

can u provide the instructions to create self signed cert to /usr/local/src/

not sure if i need to link it to the right directory or not.

Server Frontend ./httptp -inType=http -inTLSCert=/usr/local/src/alice.crt -inTLSKey=/usr/local/src/alice.key -in=127.0.0.1:866 -outType=teleports -out=234.234.234.234:866 &

Server Backend ./httptp -inType=teleports -inTLSCert=/usr/local/src/alice.crt -inTLSKey=/usr/local/src/alice.key -in=:80 -outType=http -out=127.0.0.1:88

what is the problem? appreciate this.

gitmko0 commented 4 years ago

certificates.zip using the certficates from downloaded free from the internet. i did generate them myself with openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /usr/local/src/ssssl.key -out /usr/local/src/ssssl.crt

but it's not working too

[fasthttp HostClient not secure] -> [httptp secure] <-------> [httptp secure] -> [ nginx port 80 not secure]

gitmko0 commented 3 years ago

just realised because i'm running the server behind aws so the ip address cannot be detected http server side. any ways to use teleportS without domain name verification?