mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-21 18:48:06 +02:00
validation: option to bypass
This commit is contained in:
parent
6511440c2f
commit
63d4c8fbf9
3 changed files with 16 additions and 3 deletions
|
@ -34,6 +34,10 @@ func (c *CertificatesIndex) Add(cert *x509.Certificate) {
|
|||
|
||||
// OverlapsWithExistingCertificate returns true if the certificate overlaps with an existing certificate.
|
||||
func (c *CertificatesIndex) OverlapsWithExistingCertificate(cert *x509.Certificate) (bool, string) {
|
||||
if c == nil {
|
||||
return false, ""
|
||||
}
|
||||
|
||||
usage := getCertUsage(cert)
|
||||
for _, name := range cert.DNSNames {
|
||||
if c.match(name, usage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue