Init: Private key not found – Apache Wont Start on CentOS

Problem When attempting to update a certificate in Apache the webserver would not restart. Apache Error Logs: [Tue Oct 29 14:42:07 2019] [error] Init: Private key not found [Tue Oct 29 14:42:07 2019] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag [Tue Oct 29 14:42:07 2019] [error] SSL Library Error: 218640442 error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 Read More…

Custom php.ini File in cPanel

In this example I will be creating a custom php.ini file in my WordPress website which runs on a cPanel server using SuPHP. I will also be turning off PHP display errors as a test.   1) Create your php.ini file in your public_html folder and add the following: # vi /home/jordansphere/public_html/php.ini display_errors = Off Read More…

cPanel libMagickWand.so.2 PHP Extension Error after UPCP Update

Centos: 6.7 WHM: 11.50.0 Apache: 2.2.39 PHP: 5.4.42 I awoke today to find all websites hosted on one particular cPanel server showing the following message at the bottom of every web page.   Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-xxxxxxx/imagick.so' – libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on Read More…

PHP White Screen

Scenario: A new webserver setup. HTML pages load fine but PHP shows blank white screen. Apache 2.x / Centos 6.x / PHP 5.3.3   First of all make sure PHP is installed. Then ensure the following lines are in the Apache configuration LoadModule php5_module modules/libphp5.so AddHandler php5-script .php If the same symptoms still persist then Read More…

Exporting SSL certificates for IIS

IIS requires a .pfx format to import. I will show you two commands Command to export a SSL certificate from Tomcat to IIS keytool -importkeystore -srckeystore certificates.ks -srcstoretype JCEKS -destkeystore jordansphere.pfx -deststoretype PKCS12 Note: You'll need the original keystore password for the export.  Command to export a SSL certificate from Apache to IIS openssl pkcs12 -export Read More…

The file type is not recognizable. Select another file – Import pfx file into IIS

I wanted to move a wildcard SSL certificate from Apache to IIS 7.5. From the server running Apache server I exported it using: openssl pkcs12 -export -out jordansphere.pfx -inkey jordansphere_cert.key -in jordansphere_cert.pem I then FTP'd this to my IIS server and tried to import. However, this message appeared: "The file type is not recognizable. Select Read More…