Openssl
文件 .pem 權限被拒絕
我從我的合作夥伴那裡收到了一個 pfx 文件,我將它轉換為 pem for API
想法是不知道把ubuntu伺服器放在哪里以及如何訪問woocomerce上的外掛
我的日誌是這個
#Next GuzzleHttp\Exception\RequestException: cURL error 58: could not load PEM client certificate, OpenSSL error error:0200100D:system library:fopen:Permission denied, (no key found, wrong pass phrase, or wrong file format?) in /var/www/html/magazin/wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:51 Stack trace 0 /var/www/html/magazin/wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/guzzle/src/RequestFsm.php(103): GuzzleHttp\Exception\RequestException::wrapException(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Ring\Exception\RingException)) /var/www/html/magazin/wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/guzzle/src/RequestFsm.php(132): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction)) /var/www/html/magazin/wp-content/plugins/wc-moldovaagroindbank/vendor/react/promise/src/FulfilledPromise.php(25): GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array) /var/www/html/magazin/wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL) /var/www/html/magazin/wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/guzzle/src/Message/FutureResponse.php(43): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL) /var/www/html/magazin/wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/guzzle/src/RequestFsm.php(134): GuzzleHttp\Message\FutureResponse::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
我無法發表評論,所以我需要回答。
我看到它可能失敗的 3 點:
- 文件未找到
- 文件權限
- 加密密鑰(密碼錯誤)