Skip to content

Commit

Permalink
init certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed Oct 4, 2017
1 parent d597099 commit 9405a5a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,16 @@ func NewTLSContext(idKey *rsa.PrivateKey) (*TLSContext, error) {
return nil, errors.Wrap(err, "error signing auth certificate")
}

// XXX configure certificates
// configure certificates
ctx.cfg.Certificates = []tls.Certificate{
{
Certificate: [][]byte{
ctx.LinkCert.Raw,
},
PrivateKey: ctx.LinkKey,
Leaf: ctx.LinkCert,
},
}

return ctx, nil
}
Expand Down

0 comments on commit 9405a5a

Please sign in to comment.