Skip to content

Commit

Permalink
nilaway: ipn/se mk2
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Oct 28, 2024
1 parent 993392a commit bf89fc3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions intra/ipn/seproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ func NewSEasyProxy(ctx context.Context, c protect.Controller, exit Proxy) (*sepr
return headerBasicAuth(sec.GetProxyCredentials())
}

der, _ := pem.Decode([]byte(seasy.MISSING_CHAIN_CERT))
missingcert, _ := x509.ParseCertificate(der.Bytes)
var missingcert *x509.Certificate
if der, _ := pem.Decode([]byte(seasy.MISSING_CHAIN_CERT)); der != nil {
missingcert, _ = x509.ParseCertificate(der.Bytes)
}

now := time.Now()
if missingcert != nil && missingcert.NotAfter.Before(now) {
Expand Down

0 comments on commit bf89fc3

Please sign in to comment.