我正在尝试安装SSL,但是我无法重新启动apache
/opt/bitnami/apache2/conf# sudo /opt/bitnami/ctlscript.sh restart apache
Unmonitored apache
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : apache not running
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd could not be started
Monitored apache
并在日志文件中出现此错误
[Sun Oct 06 10:18:18.967677 2019] [ssl:error] [pid 16507:tid 140079867070208] AH02579: Init: Private key not found
[Sun Oct 06 10:18:18.967727 2019] [ssl:error] [pid 16507:tid 140079867070208] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Oct 06 10:18:18.967742 2019] [ssl:error] [pid 16507:tid 140079867070208] SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
[Sun Oct 06 10:18:18.967753 2019] [ssl:error] [pid 16507:tid 140079867070208] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Oct 06 10:18:18.967765 2019] [ssl:error] [pid 16507:tid 140079867070208] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=RSA)
[Sun Oct 06 10:18:18.967776 2019] [ssl:error] [pid 16507:tid 140079867070208] SSL Library Error: error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib
[Sun Oct 06 10:18:18.967787 2019] [ssl:error] [pid 16507:tid 140079867070208] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Oct 06 10:18:18.967798 2019] [ssl:error] [pid 16507:tid 140079867070208] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
[Sun Oct 06 10:18:18.967803 2019] [ssl:emerg] [pid 16507:tid 140079867070208] AH02312: Fatal error initialising mod_ssl, exiting.
[Sun Oct 06 10:18:18.967807 2019] [ssl:emerg] [pid 16507:tid 140079867070208] AH02564: Failed to configure encrypted (?) private key mysite.com:443:0, check /opt/bitnami/apache2/conf/4ea303957fff9adb.pem
AH00016: Configuration Failed