tomatome / grdp

pure golang rdp protocol
GNU General Public License v3.0
195 stars 72 forks source link

Problem of SECU certificate X509. #29

Open Archie1978 opened 9 months ago

Archie1978 commented 9 months ago

Hello, I test your program and I find core/socket.go.

The function SSL ignore certificate X509 :

func (s *SocketLayer) StartTLS() error { config := &tls.Config{ InsecureSkipVerify: true, MinVersion: tls.VersionTLS10, MaxVersion: tls.VersionTLS13, PreferServerCipherSuites: true, } s.tlsConn = tls.Client(s.conn, config) return s.tlsConn.Handshake() }

Can you Insert tls.Config global variable for using my PKI windows ?