Category : ssl

must help please. i am using windows server 2019 with XAMPP installed. I need send curl request with client certificate, i have pfx file and password. When i tryign to send request i got error Curl error: could not load PEM client certificate, OpenSSL error error:0909006C:PEM routines:get_name:no start line, (no key found, wrong pass phrase, ..

Read more

I am trying to send an email in a PHP script in CI framework and setting up office365 smtp service. But, Sometimes, the email was sent out and sometimes it can’t be sent. It happens intermittence. I am getting error like : fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:1420C0CF:SSL routines:ssl_write_internal:protocol is ..

Read more

Based on the PEM certificate and a key file, I’m creating two P12 (Pfx) files, with and without passphrase demo_cert.pem demo_key.pem demo_pfx_withoutPassphrase.p12 demo_pfx_withPassphrase.p12 openssl pkcs12 -export -clcerts -in demo_cert.pem -inkey demo_key.pem -out demo_pfx_withoutPassphrase.p12 Enter Export Password: (empty) Verifying – Enter Export Password: (empty) openssl pkcs12 -export -clcerts -in demo_cert.pem -inkey demo_key.pem -out demo_pfx_withPassphrase.p12 Enter Export ..

Read more

I use curl in php script to make requests to different sites. Recently, one of the hosting (which hosts the requested sites) started giving a 403 forbidden error on requests. I tried to make a request from the server console and got the error curl: (60) SSL certificate problem: certificate has expired. I found expired ..

Read more

I am trying to auto sync my remote database with my local machine by using php file_get_contents and connecting to remote server with ftp_connect frequent intervals. I am using windows Task Scheduler from my local machine for that. My php script works perfectly from the browser. But when Task Scheduler Triggers it, the command prompt ..

Read more

I am trying to upload a zip file from admin panel and couldnt figure out whats the problem below is the nginx error log Stack trace: #0 /var/www/app/Http/Helpers.php(625): IlluminateFoundationBootstrapHandleExceptions->handleError() #1 /var/www/storage/framework/views/72d4631affd952c4e3bee9501b68e8bee4272705.php(10): getBaseURL() #2 /var/www/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(107): require(‘/var/www/storag…’) #3 /var/www/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(108): IlluminateFilesystemFilesystem::IlluminateFilesystem{closure}() #4 /var/www/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): IlluminateFilesystemFilesystem->getRequire() #5 /var/www/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(61): IlluminateViewEnginesPhpEngine->evaluatePath() #6 /var/www/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): IlluminateViewEnginesCompilerEngine->get() #7 /var/www/vendor…PHP message: PHP Fatal error: Uncaught ErrorException: ..

Read more

<?php $certFile = "/etc/apache2/ssl/thasaix/thasaix_com.crt"; $keyFile = "/etc/apache2/ssl/thasaix/thasaix.com.key"; $curl = curl_init(); curl_setopt($curl, CURLOPT_SSLCERT, $certFile); curl_setopt($curl, CURLOPT_SSLKEY, $keyFile); curl_setopt($curl, CURLOPT_URL, ‘https://openapi-test.kasikornbank.com/v2/oauth/token’); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); $headers = array(); $headers[] = ‘Content-Type: application/x-www-form-urlencoded’; $headers[] = ‘Authorization: Basic R1FRWkZWcGpJQ0E5Y2xScUFQZVowODhSQTVYTFgzNzk6QTNLNkxjVHU3OTZ1QTZtxxyy’; curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); $data = array(‘grant_type’ => ‘client_credentials’); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); $response = curl_exec($curl); curl_close($curl); ..

Read more