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
|
@ -176,7 +176,8 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('SSL Support');?>
|
||||
<?php print __('SSL Support');?> /
|
||||
<a class="generate" target="_blank" href="/generate/ssl/"><?php print __('Generate CSR') ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -226,7 +227,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 0;">
|
||||
<?php print __('SSL Certificate Authority / Intermediate');?> <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(<?php print __('optional');?>)</span>
|
||||
<?php print __('SSL Certificate Authority / Intermediate');?> <span class="optional">(<?php print __('optional');?>)</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -284,7 +285,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 0;">
|
||||
<?php print __('Password');?> <a href="javascript:WEBrandom();" class="genpass"><?php print __('generate');?></a>
|
||||
<?php print __('Password');?> / <a href="javascript:WEBrandom();" class="generate"><?php print __('generate');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -322,7 +323,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 0;">
|
||||
<?php print __('Password');?> <a href="javascript:FTPrandom();" class="genpass" ><?php print __('generate');?></a>
|
||||
<?php print __('Password');?> / <a href="javascript:FTPrandom();" class="generate" ><?php print __('generate');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -78,6 +78,7 @@
|
|||
<table class="data-col2" width="830px">
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 20px 0 0 2px;">
|
||||
|
||||
<?php print __('Domain');?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -192,7 +193,8 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('SSL Support');?>
|
||||
<?php print __('SSL Support');?> /
|
||||
<a class="generate" target="_blank" href="/generate/ssl/?domain=<?php echo $v_domain ?>"><?php print __('Generate CSR') ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -211,6 +213,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<select class="vst-list" name="v_ssl_home">
|
||||
|
||||
<option value='same' <?php if ($v_ssl_home == 'same') echo "selected";?>>
|
||||
public_html
|
||||
</option>
|
||||
|
@ -222,7 +225,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('SSL Certificate');?>
|
||||
<?php print __('SSL Certificate');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -242,7 +245,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('SSL Certificate Authority / Intermediate');?> <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(<?php print __('optional');?>)</span>
|
||||
<?php print __('SSL Certificate Authority / Intermediate');?> <span class="optional">(<?php print __('optional');?>)</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -300,7 +303,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 2px;">
|
||||
<?php print __('Password');?> <a href="javascript:WEBrandom();" class="genpass"><?php print __('generate');?></a>
|
||||
<?php print __('Password');?> / <a href="javascript:WEBrandom();" class="generate"><?php print __('generate');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -332,18 +335,18 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" size="20" class="vst-input" name="v_ftp_user" <?php if (!empty($v_ftp_user)) echo "value=".$v_ftp_user; ?>>
|
||||
<input type="text" size="20" class="vst-input" name="v_ftp_user" <?php if (!empty($v_ftp_user)) echo "value=".$v_ftp_user;?>>
|
||||
<small class="hint"></small>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 10px 0 0 0;">
|
||||
<?php print __('Password');?> <a href="javascript:FTPrandom();" class="genpass" ><?php print __('generate');?></a>
|
||||
<?php print __('Password');?> / <a href="javascript:FTPrandom();" class="generate"><?php print __('generate');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" class="vst-input" name="v_ftp_password" <?php if (!empty($v_ftp_password)) echo "value=".$v_ftp_password; ?>>
|
||||
<input type="text" class="vst-input" name="v_ftp_password" <?php if (!empty($v_ftp_password)) echo "value=".$v_ftp_password;?>>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
|
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>
|
84
web/templates/admin/list_ssl.html
Normal file
84
web/templates/admin/list_ssl.html
Normal file
|
@ -0,0 +1,84 @@
|
|||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/generate/ssl/'";
|
||||
} 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 __('SSL CSR');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea size="20" class="vst-textinput" name="v_csr"><?php print $v_csr ?> </textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 20px 0 0 2px;"><?php print __('SSL Certificate');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea size="20" class="vst-textinput" name="v_crt"><?php print $v_crt ?> </textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 20px 0 0 2px;">
|
||||
<?php print __('SSL Key');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea size="20" class="vst-textinput" name="v_key"><?php print $v_key ?> </textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<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