Dobrý den,
opracim se na Vám s prosbou o vyřešení problému. Na jednom z VPS se mě nedaří zprovoznit protokol HTTPS na APache2 serveri (2.4.10v)
Port ale 443 je otevřený viz:
root@blog3centrum:~# telnet localhost 443
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
root@blog3centrum:~# lsof -i -P | grep 443
sshd 18082 root 3r IPv4 349338914 0t0 TCP blog3centrum.vserver.cz:22->dynamic-109-81-208-137.ipv4.broadband.iol.cz:2443 (ESTABLISHED)
apache2 19195 root 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19199 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19200 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19219 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19220 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19221 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19222 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19223 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19251 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19260 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19261 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19262 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
apache2 19263 www-data 4u IPv4 349807390 0t0 TCP *:443 (LISTEN)
Log v error.log (Apache)
[Tue Aug 02 00:58:34.465790 2016] [mpm_prefork:notice] [pid 19195] AH00169: caught SIGTERM, shutting down
[ 2016-08-02 00:58:35.6701 19434/7fc59679b740 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.53', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.53', 'web_server_pid' => '19432', 'web_server_type' => 'apache', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' }
[ 2016-08-02 00:58:35.6876 19437/7f7db8d2e740 agents/HelperAgent/Main.cpp:650 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.19432/generation-0/request
[ 2016-08-02 00:58:35.7250 19442/7f9726b83780 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.19432/generation-0/logging
[ 2016-08-02 00:58:35.7252 19434/7fc59679b740 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!
[Tue Aug 02 00:58:35.726483 2016] [ssl:warn] [pid 19432] AH01909: blog3centrum.vserver.cz:443:0 server certificate does NOT include an ID which matches the server name
[Tue Aug 02 00:58:35.726688 2016] [ssl:warn] [pid 19432] AH01916: Init: (blog3centrum.vserver.cz:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Tue Aug 02 00:58:35.726736 2016] [suexec:notice] [pid 19432] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue Aug 02 00:58:35.807660 2016] [auth_digest:notice] [pid 19454] AH01757: generating secret for digest authentication ...
[Tue Aug 02 00:58:35.815560 2016] [:notice] [pid 19458] FastCGI: process manager initialized (pid 19458)
[ 2016-08-02 00:58:35.8333 19460/7f790323e740 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.53', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.53', 'web_server_pid' => '19454', 'web_server_type' => 'apache', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' }
[ 2016-08-02 00:58:35.8549 19463/7f32eba74740 agents/HelperAgent/Main.cpp:650 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.19454/generation-0/request
[ 2016-08-02 00:58:35.8917 19468/7fb3ea61f780 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.19454/generation-0/logging
[ 2016-08-02 00:58:35.8919 19460/7f790323e740 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!
[Tue Aug 02 00:58:35.957223 2016] [ssl:warn] [pid 19454] AH01909: blog3centrum.vserver.cz:443:0 server certificate does NOT include an ID which matches the server name
[Tue Aug 02 00:58:35.957429 2016] [ssl:warn] [pid 19454] AH01916: Init: (blog3centrum.vserver.cz:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Tue Aug 02 00:58:35.957546 2016] [wsgi:warn] [pid 19454] mod_wsgi: Compiled for Python/2.7.8.
[Tue Aug 02 00:58:35.957554 2016] [wsgi:warn] [pid 19454] mod_wsgi: Runtime using Python/2.7.9.
[Tue Aug 02 00:58:35.966053 2016] [mpm_prefork:notice] [pid 19454] AH00163: Apache/2.4.10 (Debian) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 Phusion_Passenger/4.0.53 OpenSSL/1.0.1t mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations
[Tue Aug 02 00:58:35.966107 2016] [core:notice] [pid 19454] AH00094: Command line: '/usr/sbin/apache2'
Při zadání příkazu WGET na https na localhost vyleze toto
root@blog3centrum:~# wget https://localhost/
converted 'https://localhost/' (ANSI_X3.4-1968) -> 'https://localhost/' (UTF-8)
--2016-08-02 00:57:45-- https://localhost/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:443... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:443... connected.
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Když zadám url
http://blog3centrum.vserver.cz:443 stránka se načte ale při zadání
https://blog3centrum.vserver.cz to nefunguje jako by nefungoval SSL mod ale ten se načítá ověřeno přes php script
<?php
if (!extension_loaded('openssl'))
{
echo "not loaded";
}
else
{
echo "loaded" ;
}
Vyleze "loaded"
Viz:
http://blog3centrum.vserver.cz/ssl.php
Děkuji předem za jakoukoliv odpověď už si nevim rady.
Děkuji a přeji pěkný den