mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Set leftsendcert=always for IKEv2 configurations with certificates to better accommodate OS X and iOS manual configurations. Fixes #5353
This commit is contained in:
parent
ed7f3bbcda
commit
76827b9ced
@ -995,6 +995,7 @@ EOD;
|
||||
$authentication .= "leftauth=pubkey\n\trightauth=eap-mschapv2";
|
||||
if (!empty($ph1ent['certref'])) {
|
||||
$authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt";
|
||||
$authentication .= "\n\tleftsendcert=always";
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -1004,11 +1005,13 @@ EOD;
|
||||
$authentication .= "leftauth=pubkey\n\trightauth=eap-tls";
|
||||
if (!empty($ph1ent['certref'])) {
|
||||
$authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt";
|
||||
$authentication .= "\n\tleftsendcert=always";
|
||||
}
|
||||
} else {
|
||||
$authentication = "leftauth=eap-tls\n\trightauth=eap-tls";
|
||||
if (!empty($ph1ent['certref'])) {
|
||||
$authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt";
|
||||
$authentication .= "\n\tleftsendcert=always";
|
||||
}
|
||||
}
|
||||
if (isset($casub)) {
|
||||
@ -1021,11 +1024,13 @@ EOD;
|
||||
$authentication .= "leftauth=pubkey\n\trightauth=eap-radius";
|
||||
if (!empty($ph1ent['certref'])) {
|
||||
$authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt";
|
||||
$authentication .= "\n\tleftsendcert=always";
|
||||
}
|
||||
} else {
|
||||
$authentication = "leftauth=eap-radius\n\trightauth=eap-radius";
|
||||
if (!empty($ph1ent['certref'])) {
|
||||
$authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt";
|
||||
$authentication .= "\n\tleftsendcert=always";
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user