From: Noirin Plunkett
Cryptographic software needs a source of unpredictable data to work correctly. Many open source operating systems provide @@ -133,7 +133,7 @@ generate temporary 512 bit RSA private key", when I start Apache?
To prevent this error, mod_ssl
has to provide
enough entropy to the PRNG to allow it to work correctly. This can
be done via the SSLRandomSeed
- directives.
SSL_XXX
variables not
@@ -160,16 +160,17 @@ relative hyperlinks?You can run HTTPS on any port, but the standards specify port 443, which
is where any HTTPS compliant browser will look by default. You can force
- your browser to look on a different port by specifying it in the URL like
- this (for port 666): https://secure.server.dom:666/
https://example.com:8080/
for simple testing of Apache via HTTP, it's not so easy for
HTTPS because of the SSL protocol between TCP and HTTP. With the
help of OpenSSL's s_client
command, however, you can
- do a similar check for HTTPS:
$ openssl s_client -connect localhost:443 -state -debug
GET / HTTP/1.0
Because you connected with HTTP to the HTTPS port, i.e. you used an URL of
- the form `` This can happen when you try to connect to a HTTPS server (or virtual
+ server) via HTTP (eg, using This can happen for various reasons. The most common mistakes
- include starting Apache with just
+ This error can be caused by an incorrect configuration.
Please make sure that your This rewrite ruleset lets you use hyperlinks of the form
$ curl http://localhost/
@@ -201,21 +202,19 @@ relative hyperlinks?
Why does the connection hang when I connect
to my SSL-aware Apache server?
-http://
'' instead of ``https://
''.
- This also happens the other way round when you connect via HTTPS to a HTTP
- port, i.e. when you try to use ``https://
'' on a server that
- doesn't support SSL (on this port). Make sure you are connecting to a
- virtual server that supports SSL, which is probably the IP associated with
- your hostname, not localhost (127.0.0.1).http://example.com/
instead of
+ https://example.com
). It can also happen when trying to
+ connect via HTTPS to a HTTP server (eg, using
+ https://example.com/
on a server which doesn't support HTTPS,
+ or which supports it on a non-standard port). Make sure that you're
+ connecting to a (virtual) server that supports SSL. Why do I get ``Connection Refused'' messages,
when trying to access my newly installed Apache+mod_ssl server via HTTPS?
-apachectl start
(or
- httpd
) instead of apachectl startssl
(or
- httpd -DSSL
). Your configuration may also be incorrect.
+Listen
directives match your
<VirtualHost>
directives. If all else fails, please start afresh, using the default
@@ -243,7 +242,7 @@ relative hyperlinks?
<a href="document.html:SSL">
, to switch to HTTPS
- in a relative link.
Yes. In general, starting Apache with
mod_ssl
built-in is just like starting Apache
without it. However, if you have a passphrase on your SSL private
@@ -309,7 +308,8 @@ verify my Verisign Global ID server certificate?
can be problematic - for example, when starting the server from the
system boot scripts. In this case, you can follow the steps
below to remove the passphrase from
- your private key.
The reason this dialog pops up at startup and every re-start is that the RSA private key inside your server.key file is stored in - encrypted format for security reasons. The pass-phrase is needed decrypt + encrypted format for security reasons. The pass-phrase is needed to decrypt this file, so it can be read and parsed. Removing the pass-phrase removes a layer of security from your server - proceed with caution!
Errors such as OpenSSL: error:14094412: SSL
routines:SSL3_READ_BYTES:sslv3 alert bad certificate
in the SSL
- logfile, are usually caused a browser which is unable to handle the server
+ logfile, are usually caused by a browser which is unable to handle the server
certificate/private-key. For example, Netscape Navigator 3.x is
unable to handle RSA key lengths not equal to 1024 bits.
Available Languages: en