apache - 在 Ubuntu/Apache2 上设置 SSL 时无法建立 SSL 连接

标签 apache ubuntu ssl

    root@www:/etc/apache2# wget https://www.domainname.com
--2013-09-19 09:15:12--  https://www.domainname.com/
Resolving www.classmint.com (www.domainname.com)... 198.*.124.142
Connecting to www.domainname.com (www.domainname.com)|198.*.124.142|:443... connected.
OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Unable to establish SSL connection.

如果我将 Listen 443 放在 ports.conf 中,我将无法重新启动 apache。

我可以访问 http://domainname.com:443但我不能使用 https。有什么问题吗?

解决此问题的最佳方法是什么?

最佳答案

希望对您有所帮助http://www.ssl.ua/news/how-to-create-and-install-an-apache-self-signed-certificate/ 并且你需要安装 SSL "apt-get install libssl-dev"

关于apache - 在 Ubuntu/Apache2 上设置 SSL 时无法建立 SSL 连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18890837/

相关文章:

java - Debian SSL 证书错误 : cannot verify xxx certificate/javax.net.ssl.SSLHandshakeException

unix - 带有 Apache Directory 和 RewriteRule 的通配符?

Apache:强制使用 404 状态代码

linux - 安装在服务器上的 MongoDB,连接 :0

c - 在 Ubuntu 16.04 上构建 DPDK 17.02 和 16.11 时出错

java - 使用 openssl 创建 .p12 信任库

ssl - 通过 TLS 连接到 MQTT 服务器的 CA 证书 - iot.eclipse.org

python - 使用 Python 机器学习的 Directus 自定义过滤器/搜索

Apache2 奇怪的重定向。 (默认站点覆盖其他站点)

linux - 如何在ubuntu中为常用的终端命令制作快捷方式