forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_ssl.php
More file actions
93 lines (92 loc) · 2.38 KB
/
list_ssl.php
File metadata and controls
93 lines (92 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!-- Begin form -->
<div class="container">
<form id="main-form" name="v_generate_csr" method="post">
<input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
<div class="form-container">
<h1 class="u-mb20"><?= _("Generate Self-Signed SSL Certificate") ?></h1>
<?php show_alert_message($_SESSION); ?>
<div
x-data="{
text: '<?= base64_encode($v_crt) ?>',
blob() {
return window.URL.createObjectURL(new Blob([atob(this.text)], { type: 'text/plain' }))
}
}"
class="u-mb20"
>
<label for="v_crt" class="form-label u-side-by-side">
<?= _("SSL Certificate") ?>
<a
x-bind:href="blob()"
download="<?= htmlentities($v_domain) ?>.crt"
title="<?= _("Download") ?>"
>
<i class="fas fa-download"></i>
<span class="u-hidden"><?= _("Download") ?></span>
</a>
</label>
<textarea
x-model="atob(text)"
class="form-control u-min-height100"
name="v_crt"
id="v_crt"
></textarea>
</div>
<div
x-data="{
text: '<?= base64_encode($v_key) ?>',
blob() {
return window.URL.createObjectURL(new Blob([atob(this.text)], { type: 'text/plain' }))
}
}"
class="u-mb20"
>
<label for="v_key" class="form-label u-side-by-side">
<?= _("SSL Private Key") ?>
<a
x-bind:href="blob()"
download="<?= htmlentities($v_domain) ?>.key"
title="<?= _("Download") ?>"
>
<i class="fas fa-download"></i>
<span class="u-hidden"><?= _("Download") ?></span>
</a>
</label>
<textarea
x-model="atob(text)"
class="form-control u-min-height100"
name="v_key"
id="v_key"
></textarea>
</div>
<div
x-data="{
text: '<?= base64_encode($v_csr) ?>',
blob() {
return window.URL.createObjectURL(new Blob([atob(this.text)], { type: 'text/plain' }))
}
}"
class="u-mb20"
>
<label for="v_csr" class="form-label u-side-by-side">
<?= _("SSL CSR") ?>
<a
x-bind:href="blob()"
download="<?= htmlentities($v_domain) ?>.csr"
title="<?= _("Download") ?>"
>
<i class="fas fa-download"></i>
<span class="u-hidden"><?= _("Download") ?></span>
</a>
</label>
<textarea
x-model="atob(text)"
class="form-control u-min-height100"
name="v_csr"
id="v_csr"
></textarea>
</div>
</div>
</form>
</div>
<!-- End form -->