Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ParseCertificate (0.16 sec)

  1. internal/config/certs.go

    			return nil, ErrTLSUnexpectedData(nil).Msg("Could not read PEM block from file %s", certFile)
    		}
    
    		var x509Cert *x509.Certificate
    		if x509Cert, err = x509.ParseCertificate(pemBlock.Bytes); err != nil {
    			return nil, ErrTLSUnexpectedData(nil).Msg("Failed to parse `%s`: %s", certFile, err.Error())
    		}
    
    		x509Certs = append(x509Certs, x509Cert)
    	}
    
    	if len(x509Certs) == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.8K bytes
    - Viewed (0)
Back to top