fixed some small formatting and logic mistakes
This commit is contained in:
parent
e7eb852c66
commit
bad2f8fa18
3 changed files with 5 additions and 7 deletions
|
@ -46,7 +46,7 @@ $(function () {
|
||||||
function setFileSelectVisibility() {
|
function setFileSelectVisibility() {
|
||||||
var selectedOption = $('#certificate option:selected');
|
var selectedOption = $('#certificate option:selected');
|
||||||
|
|
||||||
if (selectedOption.data('hasPrivateKey') == '1') {
|
if (selectedOption.data('hasPrivateKey') != '1') {
|
||||||
keyLocationContainer.show();
|
keyLocationContainer.show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,7 @@ class Action extends Session
|
||||||
|
|
||||||
$parameters = [
|
$parameters = [
|
||||||
'server' => $server,
|
'server' => $server,
|
||||||
|
'ca' => file_get_contents($this->getCore()->getBaseDir() . '/storage/ca/ca.crt'),
|
||||||
'cert' => $cert->getCertificate(),
|
'cert' => $cert->getCertificate(),
|
||||||
'key' => '',
|
'key' => '',
|
||||||
];
|
];
|
||||||
|
|
|
@ -22,13 +22,10 @@ cipher AES-256-CBC
|
||||||
comp-lzo
|
comp-lzo
|
||||||
|
|
||||||
<ca>
|
<ca>
|
||||||
{{ ca }}
|
{{ ca }}</ca>
|
||||||
</ca>
|
|
||||||
|
|
||||||
<cert>
|
<cert>
|
||||||
{{ cert }}
|
{{ cert }}</cert>
|
||||||
</cert>
|
|
||||||
|
|
||||||
<key>
|
<key>
|
||||||
{{ key }}
|
{{ key }}</key>
|
||||||
</key>
|
|
Loading…
Reference in a new issue