Skip to content

Problem of SECU certificate X509. #29

@Archie1978

Description

@Archie1978

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions