Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsEncryptedPEMBlock (0.07 sec)

  1. internal/config/certs.go

    	}
    	if key == nil {
    		return tls.Certificate{}, ErrTLSUnexpectedData(nil).Msgf("The private key is not readable")
    	}
    	if x509.IsEncryptedPEMBlock(key) {
    		password := env.Get(EnvCertPassword, "")
    		if len(password) == 0 {
    			return tls.Certificate{}, ErrTLSNoPassword(nil)
    		}
    		decryptedKey, decErr := x509.DecryptPEMBlock(key, []byte(password))
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top