Create a PKCS#12 (.p12) file using OpenSSL

Scenario: I wanted to create PKCS12 file to import into a Sonicwall Firewall (FW 5.9.0.4) You'll need.  – Certificate from CA (my.crt) – Private key (my.key) – CA Bundle (myCA.crt) – The password for the private key From a UNIX based server pop all of the required files into a specific directory.  # openssl pkcs12 Read More…

Change DocumentRoot of main site in CPanel

To change the document root of a main site in CPanel you'll need root SSH access. Note that you will be able to change an "Add on domains" via the GUI.   # vi /var/cpanel/userdata/{myusername}/{jordansphere.co.uk} Once in Vi change the documentroot: /home/{username}/public_html  to whatever you want (eg /home/{username}/public_html/jordansphere.co.uk ) Afterwards you'll need to run this command: Read More…