Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/caddyserver/caddy
/ pemEncodeCert
Function
pemEncodeCert
modules/caddypki/crypto.go:56–58 ·
view source on GitHub ↗
(der []byte)
Source
from the content-addressed store, hash-verified
54
}
55
56
func
pemEncodeCert(der []byte) ([]byte, error) {
57
return
pemEncode(
"CERTIFICATE"
, der)
58
}
59
60
func
pemEncode(blockType string, b []byte) ([]byte, error) {
61
var
buf bytes.Buffer
Callers
3
genRoot
Method · 0.85
genIntermediate
Method · 0.85
rootAndIntermediatePEM
Function · 0.85
Calls
1
pemEncode
Function · 0.85
Tested by
no test coverage detected