Merge pull request #1544 from openziti/fix-ca-normalization-loop

If CA is invalid pem, exit out of loop. Fixes #1543
This commit is contained in:
Paul Lorenz
2023-07-06 14:11:32 -04:00
committed by GitHub
+2
View File
@@ -444,6 +444,8 @@ func CalculateCaPems(caPems *bytes.Buffer) *bytes.Buffer {
fingerprint := toHex(hash[:])
newPem := pem.EncodeToMemory(block)
caPemMap[fingerprint] = newPem
} else {
blocksToProcess = nil
}
}