LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   HTTPS returns error code -12263 (https://www.linuxquestions.org/questions/linux-server-73/https-returns-error-code-12263-a-567559/)

mesh2005 07-08-2007 06:00 AM

HTTPS returns error code -12263
 
I followed the article:
https://help.ubuntu.com/community/fo...er/apache2/SSL to configure my APACHE + SSL. Now I'm getting the following error message when requesting any page through HTTPS:
<domain name> has sent an incorrect or unexpected message (error code -12263)
I'm using Apache 2.0, PHP 4 and Ubuntu 6.06 .Please help.

Wim Sturkenboom 07-09-2007 12:48 AM

I think you have not switched your SSLEngine on.

Code:

#  SSL Engine Switch:
SSLEngine on

I've added the above line for each virtual host that needs SSL. Not sure where to find it for apache2.

Asymmetry 07-10-2007 09:18 AM

I set the error reporting level to debug for the server's SSL site, and this is the related startup and access except from error.log:

[Tue Jul 10 09:16:10 2007] [info] Loading certificate & private key of SSL-aware server
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_pphrase.c(469): unencrypted RSA private key - pass phrase not required
[Tue Jul 10 09:16:10 2007] [info] Configuring server for SSL protocol
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(405): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1)
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(538): Configuring client authentication
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(1113): CA certificate: Certificate Data
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(729): Configuring RSA server certificate
[Tue Jul 10 09:16:10 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(768): Configuring RSA server private key
[Tue Jul 10 09:16:10 2007] [info] Loading certificate & private key of SSL-aware server
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_pphrase.c(469): unencrypted RSA private key - pass phrase not required
[Tue Jul 10 09:16:10 2007] [info] Configuring server for SSL protocol
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(405): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1)
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(538): Configuring client authentication
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(1113): CA certificate: Certificate Data
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(729): Configuring RSA server certificate
[Tue Jul 10 09:16:10 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Tue Jul 10 09:16:10 2007] [debug] ssl_engine_init.c(768): Configuring RSA server private key
[Tue Jul 10 09:16:10 2007] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch7 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Tue Jul 10 09:16:11 2007] [info] [client 137.240.136.80] Connection to child 0 established (server sirius.localhost:443)
[Tue Jul 10 09:16:11 2007] [info] Seeding PRNG with 656 bytes of entropy
[Tue Jul 10 09:16:11 2007] [debug] ssl_engine_kernel.c(1752): OpenSSL: Handshake: start
[Tue Jul 10 09:16:11 2007] [debug] ssl_engine_kernel.c(1760): OpenSSL: Loop: before/accept initialization
[Tue Jul 10 09:16:11 2007] [debug] ssl_engine_io.c(1786): OpenSSL: I/O error, 11 bytes expected to read on BIO#8983a0 [mem: 89fa70]
[Tue Jul 10 09:16:11 2007] [debug] ssl_engine_kernel.c(1789): OpenSSL: Exit: error in SSLv2/v3 read client hello A
[Tue Jul 10 09:16:11 2007] [info] [client 137.240.136.80] (70014)End of file found: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!]
[Tue Jul 10 09:16:11 2007] [info] [client 137.240.136.80] Connection closed to child 0 with abortive shutdown (server sirius.localhost:443)

Does this help?

p_s_shah 07-10-2007 11:52 AM

Post following for troubleshooting:
1./etc/hosts file.
2.Output of hostname commnad.
3.Site specific apache configuration from apache configuration file[<virtualhost> block].


All times are GMT -5. The time now is 04:25 PM.