Hello;
I am facing a problem to enable the https with the apache2, I feel it is related to the certificate as I am creating a dummy certificate, but until now I am not able to know the reason, kindly find below my data and configuration for the opensuse machine:
ANASKW:~ # cat /etc/SuSE-release
openSUSE 12.1 (x86_64)
VERSION = 12.1
CODENAME = Asparagus
vi /var/log/apache2/error.log
[Sat May 25 23:37:26 2013] [info] Init: Seeding PRNG with 144 bytes of entropy
[Sat May 25 23:37:26 2013] [info] Loading certificate & private key of SSL-aware server
[Sat May 25 23:37:26 2013] [debug] ssl_engine_pphrase.c(470): unencrypted RSA private key - pass phrase not required
[Sat May 25 23:37:26 2013] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Sat May 25 23:37:26 2013] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Sat May 25 23:37:26 2013] [info] Init: Initializing (virtual) servers for SSL
[Sat May 25 23:37:26 2013] [info] Configuring server for SSL protocol
[Sat May 25 23:37:26 2013] [debug] ssl_engine_init.c(465): Creating new SSL context (protocols: TLSv1)
[Sat May 25 23:37:26 2013] [debug] ssl_engine_init.c(666): Configuring permitted SSL ciphers [ALL:!aNULL:!eNULL:!SSLv2:!LOW:!EXP:!MD5:@STRENGTH]
[Sat May 25 23:37:26 2013] [debug] ssl_engine_init.c(420): Configuring TLS extension handling
[Sat May 25 23:37:26 2013] [debug] ssl_engine_init.c(797): Configuring RSA server certificate
[Sat May 25 23:37:26 2013] [debug] ssl_engine_init.c(836): Configuring RSA server private key
[Sat May 25 23:37:26 2013] [info] mod_ssl/2.2.21 compiled against Server: Apache/2.2.21, Library: OpenSSL/1.0.0k
ANASKW:/var/log/apache2 # rcapache2 restart
redirecting to systemctl
Job failed. See system logs and ‘systemctl status’ for details.
ANASKW:/var/log/apache2 # systemctl status apache2.service
apache2.service - apache
Loaded: loaded (/lib/systemd/system/apache2.service; enabled)
Active: failed since Sat, 25 May 2013 23:44:32 +0300; 36s ago
Process: 27659 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -k start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/apache2.service
vi /etc/apache2/listen.conf
Listen 443
Listen 80
vi /etc/apache2/vhosts.d/vhost-ssl.conf
<VirtualHost default:443>
<VirtualHost *:443>
<VirtualHost default:443>
<VirtualHost *:443>
# General setup for the virtual host
DocumentRoot "/srv/www/htdocs"
ServerName 192.168.0.5:443
ServerAdmin [email]webmaster@anas.com[/email]
ErrorLog /var/log/apache2/error_log
TransferLog /var/log/apache2/access_log
SSLCertificateFile /etc/apache2/ssl.crt/server.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/server.key
The certificate was generated using the following command:
gensslcert -c KW -s Farwaneyyah -o anas -e webmaster@anas.com -n 192.168.0.5
subject=/C=KW/ST=Farwaneyyah/L=unknown/O=anas/OU=web server/CN=192.168.0.5/emailAddress=webmaster@anas.com
About the /etc/sysconfig/apache2, the ssl existed in the APACHE_MODULES and the APACHE_SERVER_FLAGS and I tried APACHE_SERVER_FLAGS="-D SSL" and I tried APACHE_SERVER_FLAGS=“SSL” but no luck
What is the wrong thing that I have? I feel it is related to the certificate … but what it could be?
Regards
Bilal