Hello again,
I have spent some time trying to configure HTTPS on my server with absolutely so success. I am hoping someone can assist me with this issue.
Here are my configs for Windows Server 2019
----------------------------------------------------------------------------
local.cfg
----------------------------------------------------------------------------
config.prod.yml
ui:
ssl: false
port: 4000
nameSpace: /
rest:
ssl: true
host: localhost
port: 443
nameSpace: /server
----------------------------------------------------------------------------
httpd.conf
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-vhosts.conf
----------------------------------------------------------------------------
httpd-vhost.conf
----------------------------------------------------------------------------
Now Apache2 won't start. I checked the error.log and saw this start up error.
[Thu Nov 17 13:04:23.667292 2022] [ssl:emerg] [pid 5624:tid 480] AH02577: Init: SSLPassPhraseDialog builtin is not supported on Win32 (key file C:/Apache24/ssl/server.key)
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] AH02311: Fatal error initialising mod_ssl, exiting. See C:/Apache24/logs/error.log for more information
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] AH02564: Failed to configure encrypted (?) private key servername:443:0, check C:/Apache24/ssl/server.key
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] SSL Library Error: error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] SSL Library Error: error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] SSL Library Error: error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error (Type=RSAPrivateKey)
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] SSL Library Error: error:04093004:rsa routines:old_rsa_priv_decode:RSA lib
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Thu Nov 17 13:04:23.682918 2022] [ssl:emerg] [pid 5624:tid 480] SSL Library Error: error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
AH00016: Configuration Failed
I used OpenSSL v3.0.7 to create the cert and key. Please advise on how I can fix this error.
Sonia