File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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` +
You can’t perform that action at this time.
0 commit comments