Skip to content

Commit b848ee5

Browse files
committed
add indent
1 parent 4ffd180 commit b848ee5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

keyring.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ async function issueDeveloperCertificate (publicKeyPem, username) {
190190
const fingerprint = await getCertificateFingerprint(cert)
191191
const serialNumber = cert.serialNumber
192192

193-
// Build certificate chain
193+
// Build certificate chain (ensure proper newline between certificates)
194194
const middleCaCertPem = process.env.MIDDLE_CA_CERT
195-
const certChainPem = certPem + middleCaCertPem
195+
const certChainPem = certPem.trimEnd() + '\n' + middleCaCertPem + '\n'
196196

197197
return {
198198
certPem,
@@ -379,7 +379,7 @@ async function handleKeyringIssue () {
379379
`- **Valid for**: 1 year\n\n` +
380380
`## Developer Certificate (with full certificate chain)\n\n` +
381381
`Please save this certificate chain:\n\n` +
382-
`\`\`\`\n${result.certChainPem}\`\`\`\n\n` +
382+
`\`\`\`\n${result.certChainPem}\n\`\`\`\n\n` +
383383
`---\n\n` +
384384
`**What's included:**\n` +
385385
`- Your developer certificate\n` +

0 commit comments

Comments
 (0)