2

Cannot start apache2 server. error info is below.

Looking into similar questions (SSL Error - unable to read server certificate from file, Apache cannot read certificate file, and so on), still stuck in this problem. Any help is welcome. Thanks.

   me@localhost:/etc/apache2$ sudo service apache2 start
     * Starting web server apache2                                                                                    Action 'start' failed.
    The Apache error log may have more information.
                                                                                                               [fail]
    me@localhost:/etc/apache2$ sudo apachectl configtest
    Syntax OK

error.log:

[Thu Dec 17 17:24:11 2015] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Thu Dec 17 17:24:11 2015] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Thu Dec 17 17:25:27 2015] [error] Init: Unable to read server certificate from file /opt/conf/apache-portal-config/etc/ssl/server.crt

When running openssl x509 -noout -text -in to verify the cert file, everything is OK.

UPDATE

Running openssl rsa -in server.key -out server.out.key, Output is:

unable to load Private Key
140374406153888:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:696:Expecting: ANY PRIVATE KEY
BAE
  • 121

0 Answers0