Ensure trailing newline

pull/16592/head
Chris S. Kim 2023-03-09 17:41:55 -05:00
parent 523d313671
commit 8a113841d4
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ func newCARoot(pemValue, provider, clusterID string) (*structs.CARoot, error) {
ExternalTrustDomain: clusterID,
NotBefore: primaryCert.NotBefore,
NotAfter: primaryCert.NotAfter,
RootCert: pemValue,
RootCert: lib.EnsureTrailingNewline(pemValue),
PrivateKeyType: keyType,
PrivateKeyBits: keyBits,
Active: true,