Hello, I tried to apply digital certificate on Apache 2.2.11 with php 4.4.9 on Windows Server 2012 R2 and I got the error on start Apache "E:\bin\Apache\bin\httpd.exe" -k runservice :
> [Fri 10 Feb 19:48:14 2023] [error] Oops, no RSA or DSA server certificate found for 'sgt.hemominas.mg.gov.br:0'?!
Domain is sgt.hemominas.mg.gov.br , is a pubic DNS entry
Follows my httpd.conf and httpd-ssl.conf . This time, I didn't configure httpd-vhosts.conf, but before that I tried to configure it, but it was the same error.
Obs: SSLEngine on
#httpd.conf
ServerRoot "E:/bin/Apache"
Listen 80
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule ssl_module modules/mod_ssl.so
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
User daemon
Group daemon
</IfModule>
</IfModule>
ServerAdmin gtc.sistemas@hemominas.mg.gov.br
ServerName localhost:80
DocumentRoot "E:/bin/Apache/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Options Indexes FollowSymLinks ExecCGI
</Directory>
<Directory "E:/bin/Apache/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php main.php default.php
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
ErrorLog "E:\bin\Apache\logs\error.log"
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "E:\bin\Apache\logs\access.log" common
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "E:/bin/Apache/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "E:/bin/Apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Directory "E:/bin/Apache/htdocs">
Options Indexes FollowSymLinks ExecCGI
</Directory>
DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
ScriptAlias /php/ "E:/bin/php-4.4.9"
AddType application/x-httpd-php .php
Action application/x-httpd-php "E:/bin/php-4.4.9/php.exe"
</IfModule>
Include conf/extra/httpd-ssl.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
PHPIniDir "E:/bin/php-4.4.9"
LoadModule php4_module "E:/bin/php-4.4.9/sapi/php4apache2_2.dll"
**httpd-ssl.conf**
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
#SSLSessionCache "dbm:E:/bin/Apache/logs/ssl_scache"
SSLSessionCache "shmcb:E:/bin/Apache/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLMutex default
<VirtualHost _default_:443>
SSLEngine on
ServerName sgt.hemominas.mg.gov.br
ServerAlias www.sgt.hemominas.mg.gov.br
ServerAdmin sis.sgt@hemominas.mg.gov.br
DocumentRoot "E:/bin/Apache/htdocs/sgt.hemominas.mg.gov.br"
<Directory "E:/bin/Apache/htdocs/sgt.hemominas.mg.gov.br">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "E:/bin/Apache/conf/cert/cert.crt"
SSLCertificateKeyFile "E:/bin/Apache/conf/cert/privkey.pem"
SSLCertificateChainFile "E:/bin/Apache/conf/cert/chain.crt"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "E:/bin/Apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
ErrorLog "E:/bin/Apache/logs/error.log"
CustomLog "E:/bin/Apache/logs/access.log" combined
TransferLog "E:/bin/Apache/logs/access.log"
</VirtualHost>