mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
VPN: OpenVPN: Instances - only complain about a missing linked CA when none is being offered otherwise, if we're not going to use the attached CA, it should also be safe to ignore it.
This commit is contained in:
parent
b53fe7c1d9
commit
3f5d7f0779
@ -136,7 +136,7 @@ class OpenVPN extends BaseModel
|
||||
}
|
||||
if (!empty((string)$instance->cert)) {
|
||||
$tmp = Store::getCertificate((string)$instance->cert);
|
||||
if (empty($tmp) || !isset($tmp['ca'])) {
|
||||
if (empty((string)$instance->ca) && (empty($tmp) || !isset($tmp['ca']))) {
|
||||
$messages->appendMessage(new Message(
|
||||
gettext('Unable to locate a CA for this certificate.'),
|
||||
$key . ".cert"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user