certlib/bundler: add support for pemcrt.
This commit is contained in:
@@ -422,6 +422,24 @@ func encodeCertsToFiles(
|
|||||||
name: baseName + ".pem",
|
name: baseName + ".pem",
|
||||||
content: pemContent,
|
content: pemContent,
|
||||||
})
|
})
|
||||||
|
case "crt":
|
||||||
|
pemContent := encodeCertsToPEM(certs)
|
||||||
|
files = append(files, fileEntry{
|
||||||
|
name: baseName + ".crt",
|
||||||
|
content: pemContent,
|
||||||
|
})
|
||||||
|
case "pemcrt":
|
||||||
|
pemContent := encodeCertsToPEM(certs)
|
||||||
|
files = append(files, fileEntry{
|
||||||
|
name: baseName + ".pem",
|
||||||
|
content: pemContent,
|
||||||
|
})
|
||||||
|
|
||||||
|
pemContent = encodeCertsToPEM(certs)
|
||||||
|
files = append(files, fileEntry{
|
||||||
|
name: baseName + ".crt",
|
||||||
|
content: pemContent,
|
||||||
|
})
|
||||||
case "der":
|
case "der":
|
||||||
if isSingle {
|
if isSingle {
|
||||||
// For single file in DER, concatenate all cert DER bytes
|
// For single file in DER, concatenate all cert DER bytes
|
||||||
|
|||||||
1
cmd/cert-bundler/testdata/bundle.yaml
vendored
1
cmd/cert-bundler/testdata/bundle.yaml
vendored
@@ -12,6 +12,7 @@ chains:
|
|||||||
include_single: true
|
include_single: true
|
||||||
include_individual: true
|
include_individual: true
|
||||||
manifest: true
|
manifest: true
|
||||||
|
encoding: pemcrt
|
||||||
formats:
|
formats:
|
||||||
- zip
|
- zip
|
||||||
- tgz
|
- tgz
|
||||||
|
|||||||
Reference in New Issue
Block a user