Use leftsendcert=always where leftcert is defined. Ticket #6082

This commit is contained in:
Chris Buechler 2016-04-23 03:39:11 -05:00
parent 35c8b89170
commit 7951cab49f

View File

@ -1113,6 +1113,7 @@ EOD;
$authentication .= "\n\trightauth2 = xauth-generic";
if (!empty($ph1ent['certref'])) {
$authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt";
$authentication .= "\n\tleftsendcert=always";
}
if (isset($casub)) {
$authentication .= "\n\trightca=\"$casub\"";
@ -1129,6 +1130,7 @@ EOD;
$authentication = "leftauth = pubkey\n\trightauth = pubkey";
if (!empty($ph1ent['certref'])) {
$authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt";
$authentication .= "\n\tleftsendcert=always";
}
if (isset($casub)) {
$authentication .= "\n\trightca=\"$casub\"";
@ -1138,6 +1140,7 @@ EOD;
$authentication = "leftauth = pubkey\n\trightauth = xauth-generic";
if (!empty($ph1ent['certref'])) {
$authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt";
$authentication .= "\n\tleftsendcert=always";
}
break;
}