Skip to content

Commit

Permalink
add id to csr name
Browse files Browse the repository at this point in the history
  • Loading branch information
kayra1 committed Jun 26, 2024
1 parent bd258a9 commit 656ab75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/certificate_requests/row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function Row({ id, csr, certificate, ActionMenuExpanded, setActio
const blob = new Blob([csr], { type: 'text/plain' });
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = "csr.pem"; // TODO: change this to <csr-commonname>.pem
link.download = "csr-" + id.toString() + ".pem"; // TODO: change this to <csr-commonname>.pem
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
Expand Down

0 comments on commit 656ab75

Please sign in to comment.