Search the Community
Showing results for tags 'ssl'.
-
I'm trying to enable SSL in MySQL, but having trouble with UniServer. Following the directions I find online and SSL is always still disabled. Is there a trick to it with Uniserver? I used the Generate_server_cert_and_key batch file for apache, and tried re-using those keys. I also tried creating new keys from scratch, but the openssl this comes with throws an error saying "unknown option -CAKey" which apparently is not an issue anyone on the internet has ever had :-/ Here are the lines I added the mysqld section of my.ini. I can tell the keys paths are loaded in MySQL, but it still says have_openssl and have_ssl are disabled. ssl ssl-ca = "C:/UniServerZ/core/apache2/server_certs/ca.pem" ssl-cert = "C:/UniServerZ/core/apache2/server_certs/sub.class1.server.ca.pem" ssl-key = "C:/UniServerZ/core/apache2/server_certs/server.key"
-
Hi, I am glad I found uniformserver (instead of using xampp). Thank you developers for this great tool. Unfortunately I am stuck however: Now I want to set up a certificate which is used for both in the httpS So, I created a certificate *.mydns.org Files for site a.mydns.org sit in /vhosts/siteA and files for site b in /vhosts/siteB. When I try to open either httpS://a.mydns.org or httpS://b.mydns.org I am seeing the (index) page from the SSL root: /ssl What do i need to change, that both sites can be reached (only) by httpS Maybe someone is suggesting to use a(nother) certification service? Thanks already Olaf
- 2 replies
-
- apache
- configuration
-
(and 4 more)
Tagged with:
-
Hi, I'm trying to get SSL working on UniServer Zero XI 11.3.2. Here are the steps I've taken so far: I've enabled the ssl_module Copied my websites.crt, websites.key and websites.ca-bundle files to C:\UniServerZ\core\apache2\server_certs Uncommented 'Include conf/extra/httpd-ssl.conf' in C:\UniServerZ\core\apache2\conf\httpd.conf Edited my httpd-ssl.conf to be: #========================================================= # File name: httpd-ssl.conf # Created By: The Uniform Server Development Team # Edited Last By: Mike Gleaves (ric) # Apache HTTP server configuration file. # V 1.0 15-3-2013 #========================================================= # This is the Apache server configuration file providing SSL support. # It contains the configuration directives to instruct the server how to # serve pages over an https connection. For detailed information about these # directives see <URL:http://httpd.apache.org/docs/2.4/mod/mod_ssl.html> # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # Required modules: mod_log_config, mod_setenvif, mod_ssl, # socache_shmcb_module (for default value of SSLSessionCache) # # Pseudo Random Number Generator (PRNG): # Configure one or more sources to seed the PRNG of the SSL library. # The seed data should be of good random quality. # WARNING! On some platforms /dev/random blocks if not enough entropy # is available. This means you then cannot use the /dev/random device # because it would lead to very long connection times (as long as # it requires to make more entropy available). But usually those # platforms additionally provide a /dev/urandom device which doesn't # block. So, if available, use this one instead. Read the mod_ssl User # Manual for more details. # #SSLRandomSeed startup file:/dev/random 512 #SSLRandomSeed startup file:/dev/urandom 512 #SSLRandomSeed connect file:/dev/random 512 #SSLRandomSeed connect file:/dev/urandom 512 # # When we also provide SSL we have to listen to the # standard HTTP port (see above) and to the HTTPS port # #################### Global SSL ########################## Listen ${AP_SSL_PORT} https ## ## SSL Global Context ## ## All SSL configuration in this context applies both to ## the main server and all SSL-enabled virtual hosts. ## #== Some MIME-types for downloading Certificates and CRLs AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl # SSL Cipher Suite: # List the ciphers that the client is permitted to negotiate. # See the mod_ssl documentation for a complete list. SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 # Speed-optimized SSL Cipher configuration: # If speed is your main concern (on busy HTTPS servers e.g.), # you might want to force clients to specific, performance # optimized ciphers. In this case, prepend those ciphers # to the SSLCipherSuite list, and enable SSLHonorCipherOrder. # Caveat: by giving precedence to RC4-SHA and AES128-SHA # (as in the example below), most connections will no longer # have perfect forward secrecy - if the server's key is # compromised, captures of past or future traffic must be # considered compromised, too. #SSLCipherSuite RC4-SHA:AES128-SHA:HIGH:MEDIUM:!aNULL:!MD5 #SSLHonorCipherOrder on # Pass Phrase Dialog: # Configure the pass phrase gathering process. # The filtering dialog program (`builtin' is an internal # terminal dialog) has to provide the pass phrase on stdout. SSLPassPhraseDialog builtin # Inter-Process Session Cache: # Configure the SSL Session Cache: First the mechanism # to use and second the expiring timeout (in seconds). #SSLSessionCache "dbm:c:/Apache24/logs/ssl_scache" SSLSessionCache shmcb:logs/ssl_scache(512000) SSLSessionCacheTimeout 300 #== Pseudo Random Number Generator (PRNG): SSLRandomSeed startup builtin SSLRandomSeed connect builtin ## ## SSL Virtual Host Context ## <VirtualHost _default_:${AP_SSL_PORT}> # General setup for the virtual host ServerName ${US_SERVERNAME} DocumentRoot ${US_ROOTF_SSL} ServerAdmin you@example.com ErrorLog logs/error_ssl.log TransferLog logs/access_ssl.log # SSL Engine Switch: # Enable/Disable SSL for this virtual host. SSLEngine on SSLOptions +StrictRequire #== SSL Cipher Suite: SSLProtocol -all +TLSv1 +SSLv3 SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM #== Server Certificate: SSLCertificateFile ${US_ROOTF}/core/apache2/server_certs/websites.crt #== Server Private Key: SSLCertificateKeyFile ${US_ROOTF}/core/apache2/server_certs/websites.key #== StartSSL certificate chain for class 1 certificates # Disable when using a self-signed certificate # Enable remove # disable add # SSLCertificateChainFile ${US_ROOTF}/core/apache2/server_certs/websites.ca-bundle #SSLCertificateChainFile ${US_ROOTF}/core/apache2/server_certs/sub.class1.server.ca.pem #SSLCACertificateFile ${US_ROOTF}/core/apache2/server_certs/ca.pem SSLVerifyClient none SSLProxyEngine off #== Server Root folder: <Directory "${US_ROOTF_SSL}"> AllowOverride All Order allow,deny Allow from all SSLRequireSSL </Directory> #== Most problems of broken clients are related to the HTTP # keep-alive facility. Disable keep-alive for those clients. SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </VirtualHost> I've tried to start Apache, but UniServer Zero gives a 'Apache failed to start' dialog. I've looked in error.log and there's nothing to indicate a problem. error_ssl.log didn't exist, so I created it and tried to restart Apache again. After the error dialog, error_ssl.log remains empty. Where am I going wrong?