Fix SSL request
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -27,3 +27,6 @@ Homestead.yaml
|
|||||||
Thumbs.db
|
Thumbs.db
|
||||||
avancee.ods
|
avancee.ods
|
||||||
.~lock.avancee.ods#
|
.~lock.avancee.ods#
|
||||||
|
rhpz.local+1.pem
|
||||||
|
rhpz.local+1-key.pem
|
||||||
|
extra.less
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class XenforoApiService {
|
|||||||
*/
|
*/
|
||||||
private function get(string $endpoint, ?int $customUserId = null ): mixed
|
private function get(string $endpoint, ?int $customUserId = null ): mixed
|
||||||
{
|
{
|
||||||
$response = Http::timeout(30)->withHeaders([
|
$response = Http::timeout(30)->withOptions(['verify' => false])->withHeaders([
|
||||||
'XF-Api-Key' => $this->apiKey,
|
'XF-Api-Key' => $this->apiKey,
|
||||||
'XF-Api-User' => $customUserId ?? $this->superUserId,
|
'XF-Api-User' => $customUserId ?? $this->superUserId,
|
||||||
])->get("{$this->apiUrl}/{$endpoint}");
|
])->get("{$this->apiUrl}/{$endpoint}");
|
||||||
@@ -39,7 +39,7 @@ class XenforoApiService {
|
|||||||
|
|
||||||
private function post(string $endpoint, ?int $customUserId = null, array $data = [] ): mixed
|
private function post(string $endpoint, ?int $customUserId = null, array $data = [] ): mixed
|
||||||
{
|
{
|
||||||
$response = Http::timeout(30)->withHeaders([
|
$response = Http::timeout(30)->withOptions(['verify' => false])->withHeaders([
|
||||||
'XF-Api-Key' => $this->apiKey,
|
'XF-Api-Key' => $this->apiKey,
|
||||||
'XF-Api-User' => $customUserId ?? $this->superUserId,
|
'XF-Api-User' => $customUserId ?? $this->superUserId,
|
||||||
])->post("{$this->apiUrl}/{$endpoint}", $data);
|
])->post("{$this->apiUrl}/{$endpoint}", $data);
|
||||||
@@ -54,7 +54,7 @@ class XenforoApiService {
|
|||||||
|
|
||||||
private function delete(string $endpoint, ?int $customUserId = null, array $data = [] ): mixed
|
private function delete(string $endpoint, ?int $customUserId = null, array $data = [] ): mixed
|
||||||
{
|
{
|
||||||
$response = Http::timeout(30)->withHeaders([
|
$response = Http::timeout(30)->withOptions(['verify' => false])->withHeaders([
|
||||||
'XF-Api-Key' => $this->apiKey,
|
'XF-Api-Key' => $this->apiKey,
|
||||||
'XF-Api-User' => $customUserId ?? $this->superUserId,
|
'XF-Api-User' => $customUserId ?? $this->superUserId,
|
||||||
])->delete("{$this->apiUrl}/{$endpoint}", $data);
|
])->delete("{$this->apiUrl}/{$endpoint}", $data);
|
||||||
|
|||||||
24
origin_ca_rsa_root.pem
Normal file
24
origin_ca_rsa_root.pem
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIEADCCAuigAwIBAgIID+rOSdTGfGcwDQYJKoZIhvcNAQELBQAwgYsxCzAJBgNV
|
||||||
|
BAYTAlVTMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTQwMgYDVQQLEytDbG91
|
||||||
|
ZEZsYXJlIE9yaWdpbiBTU0wgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MRYwFAYDVQQH
|
||||||
|
Ew1TYW4gRnJhbmNpc2NvMRMwEQYDVQQIEwpDYWxpZm9ybmlhMB4XDTE5MDgyMzIx
|
||||||
|
MDgwMFoXDTI5MDgxNTE3MDAwMFowgYsxCzAJBgNVBAYTAlVTMRkwFwYDVQQKExBD
|
||||||
|
bG91ZEZsYXJlLCBJbmMuMTQwMgYDVQQLEytDbG91ZEZsYXJlIE9yaWdpbiBTU0wg
|
||||||
|
Q2VydGlmaWNhdGUgQXV0aG9yaXR5MRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRMw
|
||||||
|
EQYDVQQIEwpDYWxpZm9ybmlhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
|
||||||
|
AQEAwEiVZ/UoQpHmFsHvk5isBxRehukP8DG9JhFev3WZtG76WoTthvLJFRKFCHXm
|
||||||
|
V6Z5/66Z4S09mgsUuFwvJzMnE6Ej6yIsYNCb9r9QORa8BdhrkNn6kdTly3mdnykb
|
||||||
|
OomnwbUfLlExVgNdlP0XoRoeMwbQ4598foiHblO2B/LKuNfJzAMfS7oZe34b+vLB
|
||||||
|
yrP/1bgCSLdc1AxQc1AC0EsQQhgcyTJNgnG4va1c7ogPlwKyhbDyZ4e59N5lbYPJ
|
||||||
|
SmXI/cAe3jXj1FBLJZkwnoDKe0v13xeF+nF32smSH0qB7aJX2tBMW4TWtFPmzs5I
|
||||||
|
lwrFSySWAdwYdgxw180yKU0dvwIDAQABo2YwZDAOBgNVHQ8BAf8EBAMCAQYwEgYD
|
||||||
|
VR0TAQH/BAgwBgEB/wIBAjAdBgNVHQ4EFgQUJOhTV118NECHqeuU27rhFnj8KaQw
|
||||||
|
HwYDVR0jBBgwFoAUJOhTV118NECHqeuU27rhFnj8KaQwDQYJKoZIhvcNAQELBQAD
|
||||||
|
ggEBAHwOf9Ur1l0Ar5vFE6PNrZWrDfQIMyEfdgSKofCdTckbqXNTiXdgbHs+TWoQ
|
||||||
|
wAB0pfJDAHJDXOTCWRyTeXOseeOi5Btj5CnEuw3P0oXqdqevM1/+uWp0CM35zgZ8
|
||||||
|
VD4aITxity0djzE6Qnx3Syzz+ZkoBgTnNum7d9A66/V636x4vTeqbZFBr9erJzgz
|
||||||
|
hhurjcoacvRNhnjtDRM0dPeiCJ50CP3wEYuvUzDHUaowOsnLCjQIkWbR7Ni6KEIk
|
||||||
|
MOz2U0OBSif3FTkhCgZWQKOOLo1P42jHC3ssUZAtVNXrCk3fw9/E15k8NPkBazZ6
|
||||||
|
0iykLhH1trywrKRMVw67F44IE8Y=
|
||||||
|
-----END CERTIFICATE-----
|
||||||
Reference in New Issue
Block a user