mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
CSR request generator
This commit is contained in:
parent
0e3bda794b
commit
523528784e
15 changed files with 416 additions and 23 deletions
119
web/templates/admin/generate_ssl.html
Normal file
119
web/templates/admin/generate_ssl.html
Normal file
|
@ -0,0 +1,119 @@
|
|||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/web/'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
<table class="submenu">
|
||||
<tr>
|
||||
<td style="padding: 18px 8px;" ><a class="name"><b><?php print __('Generating CSR');?></b></a>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<form id="vstobjects" name="v_generate_csr" method="post">
|
||||
<table class='data'>
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted" width="150">
|
||||
<table class="data-col1">
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px">
|
||||
<table width="830px">
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="data-col2" width="830px">
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 20px 0 0 2px;">
|
||||
<?php print __('Domain');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" name="v_domain" value="<?php print $v_domain ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('Email');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" name="v_email" value="<?php print $v_email ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('Country'); ?>
|
||||
<span class="optional">(<?php print __('2 letter code');?>)</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" name="v_country" value="<?php print $v_country?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('State / Province');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" name="v_state" value="<?php print $v_state ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('City / Locality');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" name="v_locality" value="<?php print $v_locality ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('Organization');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" name="v_org" value="<?php print $v_org ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td style="padding: 24px 0 0 0;" width="116px">
|
||||
<input type="submit" class="button" name="generate" value="<?php print __('Ok');?>">
|
||||
</td>
|
||||
<td style="padding: 24px 0 0 0;">
|
||||
<input type="button" class="button" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue