This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Jump to the post that solved this thread.
[HOW_TO] Windows SSL
#1
[Solved] [HOW_TO] Windows SSL
READ THROUGH THIS TUTORIAL AT LEAST ONCE BEFORE TRYING IT!
ALWAYS MAKE BACKUPS!
THIS TUTORIAL IS WRITTEN EXPECTING YOU TO ALREADY HAVE OPENSSL INSTALLED ON YOUR SERVER.
If you DO NOT already have openSSL installed, hook up with your favorite search engine and install it.

-SSL Windows installers: http://slproweb.com/products/Win32OpenSSL.html

Navigate to c:/zpanel/bin/apache
CTRL+A > Right Click > Add to apache.zip. This will be your backup of Apache (apache.zip)
Navigate to c:/zpanel/bin/php
CTRL+A > Right Click > Add to php.zip. This will be your backup of PHP (php.zip)
Create a certificate:
-Self signed certificate: Self-Signed Tutorial
-Purchase a certificate: GoDaddy SSL or Choose your own Certificate supplier.
Install the certificate (In this tutorial I placed mine in c:/zpanel/bin/apache/ssl_certs/)
Log into ZPanel as zadmin, navigate to: Admin>Module Admin>Apache Config>Global ZPanel Entry and ADD:
REPLACE YOUR_CERT_NAME with your certificates .crt (or .cert) file name.
REPLACE YOUR_KEY_NAME with your certificates .key file name.
Code:
    SSLEngine on
    SSLCertificateFile C:/zpanel/bin/apache/ssl_certs/YOUR_CERT_NAME.crt
    SSLCertificateKeyFile C:/zpanel/bin/apache/ssl_certs/YOUR_KEY_NAME.key
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    CustomLog c:/zpanel/logs/ssl_request_log \
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
>SAVE
Go to ZPanel Config > ZPanel Login Port and change to: 443 and SAVE. If it is not there, you can edit it using phpMyAdmin zpanel_core > x_settings > zpanel_port
OPEN: c:/zpanel/panel/modules/apache_admin/hooks/OnDaemonRun.hook.php
FIND:
Code:
$line .= "<VirtualHost *:" . ctrl_options::GetSystemOption( 'apache_port' ) . ">" . fs_filehandler::NewLine();
REPLACE WITH:
Code:
$line .= "<VirtualHost *:" . ctrl_options::GetSystemOption( 'zpanel_port' ) . ">" . fs_filehandler::NewLine();
OPEN: c:/zpanel/bin/apache/conf/extra/httpd-ssl.conf
CTRL+A - DELETE ALL
PASTE:
Code:
Listen 443

SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLPassPhraseDialog  builtin

SSLSessionCache        shmcb:/ssl_cache/ssl_scache(512000)
OPEN: c:/zpanel/bin/apache/conf/httpd.conf
FIND:
Code:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
BEFORE ADD: (This was the main issue why I couldn't figure it out earlier! Was always putting it AFTER Include conf/extra/httpd-vhosts.conf Blush)
Code:
# Secure (SSL/TLS) connections // must be BEFORE httpd-vhosts.conf!
Include conf/extra/httpd-ssl.conf
>SAVE
OPEN: c:/zpanel/panel/.htaccess
AFTER:
Code:
RewriteEngine on
RewriteRule ^api/([^/\.]+)/?$ bin/api.php?m=$1 [L]
RewriteRule ^apps/([^/\.]+)/?$ etc/apps/$1 [L]
ADD:
Code:
# SSL redirect
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Start apache...If it starts:
Restart your server and navigate to your zpanel login (Should now need to use https://panel.domain.com)
If it does not start: Review the tutorial again.
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support helpful? Donate HERE
Help me to help you by getting your domains using this link:
GoDaddy - Domains
Thanks given by:
#2
[Solved] RE: [HOW_TO] Windows SSL
Make sure you already have SSL installed and running on your server.
If you DO NOT already have openSSL installed, hook up with your favorite search engine and install it.

-SSL Windows installers: http://slproweb.com/products/Win32OpenSSL.html

Then try this newer module: http://forums.sentora.org/showthread.php?tid=2001

It is a LOT easier than my manual tutorial and should work on Windows Wink
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support helpful? Donate HERE
Help me to help you by getting your domains using this link:
GoDaddy - Domains
Thanks given by:
Jump to the post that solved this thread.


Possibly Related Threads...
Thread Author Replies Views Last Post
Zpanel on Windows horizon 3 1,222 05-12-2016, 03:52 AM
Last Post: TGates
Windows OS To Go With! Dave 1 1,134 07-15-2015, 08:39 AM
Last Post: Me.B
Zpanel windows install help Masi 4 2,611 12-26-2014, 06:09 AM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 1 Guest(s)