So I'm trying to accomplish the following:
Using log4js-node I am trying to transmit my logging data to another server, which captures the data.
Now without encryption it's all nice and dandy, but I want dem fancy encryptions for security purposes (it's getting transmitted thru the World Wild Web after all).
My Ncat command:
sudo ncat -vvv -l 1000 --ssl --ssl-key /etc/letsencrypt/live/domainhere.com/privkey.pem --ssl-cert /etc/letsencrypt/live/domainhere.com/cert.pem
My error:
Ncat: Failed SSL connection from IPHERE: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Please note I am using ncat from the nmap project and not netcat since the original netcat has no SSL support.
I have already tried updating the OpenSSL version of the ncat server already to the newest that did not help. The port is set correctly, I don't get why it's throwing me this error...
UPDATE
The whole transmission looks the following (this is the raw ASCII data):
..:..I.4Vx....E.
.4.Q@.s...[1....
...^....;.......
..:.............
..
..:..I.4Vx....E.
.(.S@.s...[1....
...^....;.4...P.
...U........
..:..I.4Vx....E.
...U@.s...[1....
...^....;.4...P.
..N...[{"startTi
me":"1","categor
yName":"2","data
":"3","level":"4
","context":"5",
"pid":8848},"202
1-02-24T11:00:04
.331Z","default"
,["6"],{"level":
20000,"levelStr"
:"7","colour":"8
"},{},"Hello,.lo
g4js!","INFO","g
reen"]__LOG4JS__
.4Vx....:..I..E.
.(.-@.@.......[1
.....^4.....<.P.
..)...
.4Vx....:..I..E.
.(..@.@.......[1
.....^4.....<.P.
..)...
..:..I.4Vx....E.
...V@.s...[1....
...^....<.4...P.
...5..[{"startTi
me":"1","categor
yName":"2","data
":"3","level":"4
","context":"5",
"pid":8848},"202
1-02-24T11:00:04
.340Z","default"
,["6"],{"level":
30000,"levelStr"
:"7","colour":"8
"},{},"Test.warn
ing!.This.is.not
.a.drill!","WARN
","yellow"]__LOG
4JS__
.4Vx....:..I..E.
.(.'@.@.......[1
.....^4.......P.
......
..:..I.4Vx....E.
.4.X@.s...[1....
..._..S.C.......
...V............
..
.4Vx....:..I..E.
.(.0@.@.......[1
....._....S.C.P.
......