forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_ssl.php
More file actions
59 lines (55 loc) · 2.29 KB
/
generate_ssl.php
File metadata and controls
59 lines (55 loc) · 2.29 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
<div class="container">
<form id="main-form" name="v_generate_csr" method="post">
<input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
<input type="hidden" name="generate" value="generate">
<div class="form-container">
<h1 class="u-mb20"><?= _("Generate Self-Signed SSL Certificate") ?></h1>
<?php show_alert_message($_SESSION); ?>
<div class="u-mb10">
<label for="v_domain" class="form-label"><?= _("Domain") ?></label>
<input type="text" class="form-control" name="v_domain" id="v_domain" value="<?= htmlentities(trim($v_domain, "'")) ?>">
</div>
<div class="u-mb10">
<label for="v_aliases" class="form-label"><?= _("Aliases") ?></label>
<textarea class="form-control" name="v_aliases" id="v_aliases"><?= htmlentities(trim($v_aliases, "'")) ?></textarea>
</div>
<div class="u-mb10">
<label for="v_email" class="form-label">
<?= _("Email") ?>
<span class="optional">(<?php print _("Optional"); ?>)</span>
</label>
<input type="email" class="form-control" name="v_email" id="v_email" value="<?= htmlentities(trim($v_email, "'")) ?>">
</div>
<div class="u-mb10">
<label for="v_country" class="form-label">
<?= _("Country") ?>
<span class="optional">(<?= _("ISO 3166-1 alpha-2 two-letter code") ?>)</span>
</label>
<input type="text" class="form-control" name="v_country" id="v_country" value="<?= htmlentities(trim($v_country, "'")) ?>">
</div>
<div class="u-mb10">
<label for="v_state" class="form-label">
<?= _("State / Province") ?>
</label>
<input type="text" class="form-control" name="v_state" id="v_state" value="<?= htmlentities(trim($v_state, "'")) ?>">
</div>
<div class="u-mb10">
<label for="v_locality" class="form-label">
<?= _("City / Locality") ?>
</label>
<input type="text" class="form-control" name="v_locality" id="v_locality" value="<?= htmlentities(trim($v_locality, "'")) ?>">
</div>
<div class="u-mb20">
<label for="v_org" class="form-label">
<?= _("Organization") ?>
</label>
<input type="text" class="form-control" name="v_org" id="v_org" value="<?= htmlentities(trim($v_org, "'")) ?>">
</div>
<div>
<button type="submit" class="button" name="generate">
<?= _("Generate") ?>
</button>
</div>
</div>
</form>
</div>