Skip to content

Commit

Permalink
fix LDAPServer.SetupTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinz01 committed Apr 15, 2024
1 parent af972a3 commit 624a9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewLDAPServer(handler Handler) *LDAPServer {

// Load the certificate and key to enable TLS connections.
func (s *LDAPServer) SetupTLS(certFile string, keyFile string) error {
cert, err := tls.LoadX509KeyPair("cert.pem", "privkey.pem")
cert, err := tls.LoadX509KeyPair(certFile, keyFile)
if err != nil {
return err
}
Expand Down

0 comments on commit 624a9b9

Please sign in to comment.