RE: SSL Login Sentora for windows
10-10-2015, 09:56 AM
(This post was last modified: 10-10-2015, 10:10 AM by ccr1969.)
i have it running
i found a lot of threads here that made life easy
1 = make sure you have openssl installed
mine is installed here C:\Sentora\bin\openssl\
https://openssl-for-windows.googlecode.c..._WIN32.zip
2 = load module in httpd conf Remove ssl_module modules/mod_ssl.so so it looks like this
Code:
LoadModule ssl_module modules/mod_ssl.so
3 = create your certificates like this in openssl open cmd prompt run as admin
cd C:\Sentora\bin\openssl\
change the name to what you want it called ex. name.key=server.key do to all with name
Code:
openssl genrsa -des3 -out name.key 1024
openssl req -new -key name.key -out name.csr
openssl rsa -in name.key.org -out name.key (for this step rename this to name.key.org)
openssl x509 -req -days 365 -in name.csr -signkeyname.key -out name.crt
4 = create a folder ssl if not already made in C:\Sentora\bin\apache\conf\ put your crt and key in here after created C:\Sentora\bin\apache\conf\ssl\
5 = now open C:\Sentora\bin\apache\conf\extra make a new file call it http-ssl-vhost.conf open file in notepad2( http://www.flos-freeware.ch/zip/notepad2_4.2.25_x86.zip )add this
Code:
# Configuration for Sentora Control Panel.
<VirtualHost *:443>
ServerName Your Domain.com
ServerAdmin webmaster@Your Domain.com
DocumentRoot "C:/Sentora/panel/"
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html
<Directory "C:/Sentora/panel/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
SSLEngine on
SSLCertificateFile C:\Sentora\bin\apache\conf\ssl\name.crt
SSLCertificateKeyFile C:\Sentora\bin\apache\conf\ssl\name.key
</VirtualHost>
Change name to what you used
6 = Open C:\Sentora\bin\apache\conf\httpd.conf and add this to httpd.conf
Code:
SSL CONFIGURATION
Include conf/extra/http-ssl-vhost.conf
7 = Restart Apache test https://yourserver.com
hope this helps
you can also go to sentora config Sentora Apache Port 80 to port 443
Code:
NameVirtualHost *:443
than Module Admin Apache config add this to Global Sentora Entry
Code:
SSLEngine on
SSLCertificateFile C:\Sentora\bin\apache\conf\ssl\name.crt
SSLCertificateKeyFile C:\Sentora\bin\apache\conf\ssl\name.key
Change name to what you used
do steps 1 to 4 for this