Revize 0dcf0002
Přidáno uživatelem Jan Pašek před asi 4 roky(ů)
static/js/components.js | ||
---|---|---|
24 | 24 |
axios.get(API_URL + "certificates/" + id) |
25 | 25 |
.then(function (response) { |
26 | 26 |
if(response.data["success"]) { |
27 |
download(id + ".crt", response.data["data"])
|
|
27 |
download(id + ".pem", response.data["data"])
|
|
28 | 28 |
} |
29 | 29 |
else |
30 | 30 |
console.log("Error occurred while downloading the certificate") // TODO more action may be required |
... | ... | |
39 | 39 |
axios.get(API_URL + "certificates/" + id + "/chain") |
40 | 40 |
.then(function (response) { |
41 | 41 |
if(response.data["success"]) { |
42 |
download(id + "_chain.crt", response.data["data"])
|
|
42 |
download(id + "_chain.pem", response.data["data"])
|
|
43 | 43 |
} |
44 | 44 |
else |
45 | 45 |
console.log("Error occurred while downloading the certificate's chain of trust") // TODO more action may be required |
... | ... | |
54 | 54 |
axios.get(API_URL + "certificates/" + id + "/root") |
55 | 55 |
.then(function (response) { |
56 | 56 |
if(response.data["success"]) { |
57 |
download(id + "_root.crt", response.data["data"])
|
|
57 |
download(id + "_root.pem", response.data["data"])
|
|
58 | 58 |
} |
59 | 59 |
else |
60 | 60 |
console.log("Error occurred while downloading the certificate's root CA") // TODO more action may be required |
Také k dispozici: Unified diff
Re #8583 Certificate listing - downloading certificates as .pem instead of .crt