mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: minor improvements for import feature
This commit is contained in:
+1
-1
@@ -405,7 +405,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
if (gridParams['import'] != undefined) {
|
||||
var uuid=$(this).data("row-id");
|
||||
stdDialogConfirm('{{ lang._('Confirmation Required') }}',
|
||||
'{{ lang._('(Re-) import the selected certificate into the trust storage?') }}',
|
||||
'{{ lang._('(Re-) import the selected certificate and associated CA certificates into the trust storage?') }}',
|
||||
'{{ lang._('Yes') }}', '{{ lang._('Cancel') }}', function() {
|
||||
ajaxCall(url=gridParams['import'] + uuid,
|
||||
sendData={},callback=function(data,status){
|
||||
|
||||
@@ -171,7 +171,9 @@ function main()
|
||||
}
|
||||
} elseif ($options['mode'] === 'import' && isset($options['cert'])) {
|
||||
$cert = new LeCertificate($options['cert']);
|
||||
$cert->import();
|
||||
// Set $skip_validation to allow import even when validation
|
||||
// is currently failing.
|
||||
$cert->import(true);
|
||||
} elseif ($options['mode'] === 'revoke' && isset($options['cert'])) {
|
||||
$cert = new LeCertificate($options['cert']);
|
||||
$cert->revoke();
|
||||
|
||||
Reference in New Issue
Block a user