Blank Screen (500) When Trying To Activate Cdn [Tested On Cscart & Mv]

Hello, I have been facing a problem about CDN.

I am using Cloudfront on several systems already, so I have knowledge about settings.

The problem is,

When I enter Key and Secret key in CDN Settings page and click save, it redirects me to blank page (Code:500).

I have tried on MultiVendor Trial, CSCart Ultimate Trial, and CsCart Free the result are the same. (4.3.4)

Tested on: WAMP, XAMPP and even IIS 8.5 but the result are the same.

The only thing I edited is the followin code in .htaccess (web.conf version in IIS). I don't think it causes the problem.

    # Compress HTML, CSS, JavaScript, Text, XML, fonts
    AddOutputFilterByType DEFLATE application/javascript application/x-javascript text/javascript application/json
    AddOutputFilterByType DEFLATE application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf font/opentype font/otf font/ttf application/x-woff application/x-font-woff
    AddOutputFilterByType DEFLATE text/css text/html text/plain

Could you please guide me what could be the problem?

Thanks in advance!

Please see the screenshoots for details.

1.PNG

2.PNG

3.PNG

Hello, I have been facing a problem about CDN.

I am using Cloudfront on several systems already, so I have knowledge about settings.

The problem is,

When I enter Key and Secret key in CDN Settings page and click save, it redirects me to blank page (Code:500).

I have tried on MultiVendor Trial, CSCart Ultimate Trial, and CsCart Free the result are the same. (4.3.4)

Tested on: WAMP, XAMPP and even IIS 8.5 but the result are the same.

The only thing I edited is the followin code in .htaccess (web.conf version in IIS). I don't think it causes the problem.

    # Compress HTML, CSS, JavaScript, Text, XML, fonts
    AddOutputFilterByType DEFLATE application/javascript application/x-javascript text/javascript application/json
    AddOutputFilterByType DEFLATE application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf font/opentype font/otf font/ttf application/x-woff application/x-font-woff
    AddOutputFilterByType DEFLATE text/css text/html text/plain

Could you please guide me what could be the problem?

Thanks in advance!

Please see the screenshoots for details.

Reproduce the issue several times, check the server error logs and post the error records here so we could help you.

Hello,

Apache Log seems fine, but I caught this on PHP Error log, but I am getting the same error on live server for some reason.

PHP Log

[03-Dec-2015 11:13:07 Europe/Moscow] PHP Fatal error:  Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #191; cURL error: SSL certificate problem: unable to get local issuer certificate (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\wamp\www\mv434\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php:843
Stack trace:
#0 C:\wamp\www\mv434\app\lib\other\amazon_sdk\services\cloudfront.class.php(256): RequestCore->send_request()
#1 C:\wamp\www\mv434\app\lib\other\amazon_sdk\services\cloudfront.class.php(903): AmazonCloudFront->authenticate('POST', Array)
#2 C:\wamp\www\mv434\app\Tygh\Backend\Cdn\Cloudfront.php(43): AmazonCloudFront->create_distribution('http://localhos...', 'TYGHCDN-localho...', Array)
#3 C:\wamp\www\mv434\app\controllers\backend\storage.php(79): Tygh\Backend\Cdn\Cloudfront->createDistribution('localhost', Array)
#4 C:\wamp\www\mv434\app\functions\fn.control.php(680): include('C:\\wamp\\www\\mv4...')
#5 C:\wamp\www\mv434\app\functions\fn.contro in C:\wamp\www\mv434\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php on line 843

Also this is the error log from live server running under IIS 8.5 on W2012 Cluster

[03-Dec-2015 12:11:05 Europe/Moscow] PHP Fatal error:  Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #25; cURL error: SSL certificate problem: unable to get local issuer certificate (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php:843
Stack trace:
#0 C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\services\cloudfront.class.php(256): RequestCore->send_request()
#1 C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\services\cloudfront.class.php(903): AmazonCloudFront->authenticate('POST', Array)
#2 C:\inetpub\wwwroot\mv_temp\app\Tygh\Backend\Cdn\Cloudfront.php(43): AmazonCloudFront->create_distribution('http://www.ald...', 'TYGHCDN-www.ald...', Array)
#3 C:\inetpub\wwwroot\mv_temp\app\controllers\backend\storage.php(79): Tygh\Backend\Cdn\Cloudfront->createDistribution('www.ald...', Array)
#4 C:\inetpub\wwwroot\mv_temp\app\functions\fn.control.php(680): include('C:\ine in C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php on line 843

Hello,

Apache Log seems fine, but I caught this on PHP Error log, but I am getting the same error on live server for some reason.

PHP Log

[03-Dec-2015 11:13:07 Europe/Moscow] PHP Fatal error:  Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #191; cURL error: SSL certificate problem: unable to get local issuer certificate (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\wamp\www\mv434\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php:843
Stack trace:
#0 C:\wamp\www\mv434\app\lib\other\amazon_sdk\services\cloudfront.class.php(256): RequestCore->send_request()
#1 C:\wamp\www\mv434\app\lib\other\amazon_sdk\services\cloudfront.class.php(903): AmazonCloudFront->authenticate('POST', Array)
#2 C:\wamp\www\mv434\app\Tygh\Backend\Cdn\Cloudfront.php(43): AmazonCloudFront->create_distribution('http://localhos...', 'TYGHCDN-localho...', Array)
#3 C:\wamp\www\mv434\app\controllers\backend\storage.php(79): Tygh\Backend\Cdn\Cloudfront->createDistribution('localhost', Array)
#4 C:\wamp\www\mv434\app\functions\fn.control.php(680): include('C:\\wamp\\www\\mv4...')
#5 C:\wamp\www\mv434\app\functions\fn.contro in C:\wamp\www\mv434\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php on line 843

Also this is the error log from live server running under IIS 8.5 on W2012 Cluster

[03-Dec-2015 12:11:05 Europe/Moscow] PHP Fatal error:  Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #25; cURL error: SSL certificate problem: unable to get local issuer certificate (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php:843
Stack trace:
#0 C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\services\cloudfront.class.php(256): RequestCore->send_request()
#1 C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\services\cloudfront.class.php(903): AmazonCloudFront->authenticate('POST', Array)
#2 C:\inetpub\wwwroot\mv_temp\app\Tygh\Backend\Cdn\Cloudfront.php(43): AmazonCloudFront->create_distribution('http://www.ald...', 'TYGHCDN-www.ald...', Array)
#3 C:\inetpub\wwwroot\mv_temp\app\controllers\backend\storage.php(79): Tygh\Backend\Cdn\Cloudfront->createDistribution('www.ald...', Array)
#4 C:\inetpub\wwwroot\mv_temp\app\functions\fn.control.php(680): include('C:\ine in C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php on line 843

It is a server side issue, please contact your server administrators regarding it. The following articles may be useful for them:

http://www.info.teradata.com/HTMLPubs/DB_TTU_14_00/index.html#page/Database_Management/B035_1100_111A/SSL_TLS_OPTIONS.108.34.html

http://serverfault.com/questions/671616/apache-ssl-unable-to-get-local-issuer-certificate

http://stackoverflow.com/questions/26260445/openssl-unable-to-get-local-issuer-certificate-debian

Thank you for answer.

I own the servers. I've managed to get it work on my local (both in XAMPP and WAMPP).

If you are testing/developing it on local using Windows with any web development environment, and having this problem, the solution is below;

1-) Download http://curl.haxx.se/ca/cacert.pemand save it in your environment (ie. C:\wamp\bin\php\php5.5.12)

2-) Add/activate (by removing the starting ';')

curl.cainfo = "C:\wamp\bin\php\php5.5.12\cacert.pem"
openssl.cafile="C:\wamp\bin\php\php5.5.12\ca-bundle.crt"

3-) Restart whatever you use

But I have no idea how to fix it under IIS 8.5, any tips?

Thanks in advance.

Thank you for answer.

I own the servers. I've managed to get it work on my local (both in XAMPP and WAMPP).

If you are testing/developing it on local using Windows with any web development environment, and having this problem, the solution is below;

1-) Download http://curl.haxx.se/ca/cacert.pemand save it in your environment (ie. C:\wamp\bin\php\php5.5.12)

2-) Add/activate (by removing the starting ';')

curl.cainfo = "C:\wamp\bin\php\php5.5.12\cacert.pem"
openssl.cafile="C:\wamp\bin\php\php5.5.12\ca-bundle.crt"

3-) Restart whatever you use

But I have no idea how to fix it under IIS 8.5, any tips?

Thanks in advance.

**Edit, I am using https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crtfor ca-bunlde.crt