Skip to content

Commit ca00864

Browse files
committed
fix: usage of SSL certs in WeAreFrankController
1 parent fc89ca3 commit ca00864

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/PrefillGravityForms/Controllers/WeAreFrankController.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ protected function requestEmbedded(string $bsn = ''): array
180180

181181
protected function getDefaultCurlArgs(): array
182182
{
183-
return [
183+
$args = [
184184
CURLOPT_RETURNTRANSFER => true,
185185
CURLOPT_ENCODING => '',
186186
CURLOPT_MAXREDIRS => 10,
@@ -189,5 +189,12 @@ protected function getDefaultCurlArgs(): array
189189
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
190190
CURLOPT_CUSTOMREQUEST => 'POST',
191191
];
192+
193+
if ($this->settings->useSSLCertificates()) {
194+
$args[CURLOPT_SSLCERT] = $this->settings->getPublicCertificate();
195+
$args[CURLOPT_SSLKEY] = $this->settings->getPrivateCertificate();
196+
}
197+
198+
return $args;
192199
}
193200
}

0 commit comments

Comments
 (0)