Skip to content

Commit

Permalink
Fix Cert Gen
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Mar 7, 2024
1 parent 5134d35 commit 52e3872
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/lib/api/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ export default class {
body: keys.csr
});

let cert = '-----BEGIN CERTIFICATE-----\n' + res.signedCert;
if (!res.signedCert.endsWith('\n')) cert = cert + '\n';
cert + '-----END CERTIFICATE-----';

return {
cert: '-----BEGIN CERTIFICATE-----\n' + res.signedCert + '\n-----END CERTIFICATE-----',
cert,
key: keys.clientKey
}
}
Expand Down

0 comments on commit 52e3872

Please sign in to comment.