mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
fixed bug with missing new line in ssl certificate
This commit is contained in:
parent
fe1b3cfddd
commit
1482a7e8fd
2 changed files with 6 additions and 0 deletions
|
@ -182,6 +182,7 @@ top_panel($user,$TAB);
|
||||||
if (!empty($_POST['v_ssl_crt'])) {
|
if (!empty($_POST['v_ssl_crt'])) {
|
||||||
$fp = fopen($tmpdir."/".$_POST['v_domain'].".crt", 'w');
|
$fp = fopen($tmpdir."/".$_POST['v_domain'].".crt", 'w');
|
||||||
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_crt']));
|
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_crt']));
|
||||||
|
fwrite($fp, "\n");
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,6 +190,7 @@ top_panel($user,$TAB);
|
||||||
if (!empty($_POST['v_ssl_key'])) {
|
if (!empty($_POST['v_ssl_key'])) {
|
||||||
$fp = fopen($tmpdir."/".$_POST['v_domain'].".key", 'w');
|
$fp = fopen($tmpdir."/".$_POST['v_domain'].".key", 'w');
|
||||||
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_key']));
|
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_key']));
|
||||||
|
fwrite($fp, "\n");
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,6 +198,7 @@ top_panel($user,$TAB);
|
||||||
if (!empty($_POST['v_ssl_ca'])) {
|
if (!empty($_POST['v_ssl_ca'])) {
|
||||||
$fp = fopen($tmpdir."/".$_POST['v_domain'].".ca", 'w');
|
$fp = fopen($tmpdir."/".$_POST['v_domain'].".ca", 'w');
|
||||||
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_ca']));
|
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_ca']));
|
||||||
|
fwrite($fp, "\n");
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -272,6 +272,7 @@ top_panel($user,$TAB);
|
||||||
if (!empty($_POST['v_ssl_crt'])) {
|
if (!empty($_POST['v_ssl_crt'])) {
|
||||||
$fp = fopen($tmpdir."/".$_POST['v_domain'].".crt", 'w');
|
$fp = fopen($tmpdir."/".$_POST['v_domain'].".crt", 'w');
|
||||||
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_crt']));
|
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_crt']));
|
||||||
|
fwrite($fp, "\n");
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -279,6 +280,7 @@ top_panel($user,$TAB);
|
||||||
if (!empty($_POST['v_ssl_key'])) {
|
if (!empty($_POST['v_ssl_key'])) {
|
||||||
$fp = fopen($tmpdir."/".$_POST['v_domain'].".key", 'w');
|
$fp = fopen($tmpdir."/".$_POST['v_domain'].".key", 'w');
|
||||||
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_key']));
|
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_key']));
|
||||||
|
fwrite($fp, "\n");
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,6 +288,7 @@ top_panel($user,$TAB);
|
||||||
if (!empty($_POST['v_ssl_ca'])) {
|
if (!empty($_POST['v_ssl_ca'])) {
|
||||||
$fp = fopen($tmpdir."/".$_POST['v_domain'].".ca", 'w');
|
$fp = fopen($tmpdir."/".$_POST['v_domain'].".ca", 'w');
|
||||||
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_ca']));
|
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_ca']));
|
||||||
|
fwrite($fp, "\n");
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue