Skip to content

Commit

Permalink
logs2
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto committed Jan 21, 2025
1 parent 27dde56 commit 3b447b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/activator/certificate/tls_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ func dialTLSContext(ctx context.Context, network, addr string, cr *CertCache) (n

func verifySAN(san string) func(tls.ConnectionState) error {
return func(cs tls.ConnectionState) error {
log.Println("In verifySAN1")
log.Printf("In verifySAN1: %s", san)
if len(cs.PeerCertificates) == 0 {
return errors.New("no PeerCertificates provided")
}
log.Println("In verifySAN2")
log.Printf("In verifySAN2: %s", san)
for _, name := range cs.PeerCertificates[0].DNSNames {
if name == san {
log.Println("In verifySAN3")
log.Printf("In verifySAN3 %s\n", name)
return nil
}
}
Expand Down

0 comments on commit 3b447b8

Please sign in to comment.