Home | History | Annotate | Download | only in tls

Lines Matching refs:PEM

18 	"encoding/pem"
174 // of files. The files must contain PEM encoded data. The certificate file
191 // PEM encoded data. On successful return, Certificate.Leaf will be nil because
199 var certDERBlock *pem.Block
200 certDERBlock, certPEMBlock = pem.Decode(certPEMBlock)
213 return fail(errors.New("tls: failed to find any PEM data in certificate input"))
216 return fail(errors.New("tls: failed to find certificate PEM data in certificate input, but did find a private key; PEM inputs may have been switched"))
218 return fail(fmt.Errorf("tls: failed to find \"CERTIFICATE\" PEM block in certificate input after skipping PEM blocks of the following types: %v", skippedBlockTypes))
222 var keyDERBlock *pem.Block
224 keyDERBlock, keyPEMBlock = pem.Decode(keyPEMBlock)
227 return fail(errors.New("tls: failed to find any PEM data in key input"))
230 return fail(errors.New("tls: found a certificate rather than a key in the PEM for the private key"))
232 return fail(fmt.Errorf("tls: failed to find PEM block with type ending in \"PRIVATE KEY\" in key input after skipping PEM blocks of the following types: %v", skippedBlockTypes))