简体   繁体   English

Google Cloud Platform Compute Engine SSL证书

[英]Google Cloud Platform Compute Engine SSL Certificate

Followed the instructions here to add an ssl cert: https://cloud.google.com/compute/docs/load-balancing/http/ssl-certificates 按照此处的说明添加ssl证书: https : //cloud.google.com/compute/docs/load-balancing/http/ssl-certificates

but when I access my domain from https://example2.com I get an error that the cert is "Your connection is not secure 但是当我从https://example2.com访问我的域时,出现错误消息,该证书是“您的连接不安全

The owner of mydomain.com has configured their website improperly. mydomain.com的所有者未正确配置其网站。 To protect your information from being stolen, Firefox has not connected to this website." 为了防止您的信息被盗,Firefox没有连接到该网站。”

When I expand the cert that it shows it says www.example.com rather than www.example2.com. 当我扩展显示的证书时,它显示的是www.example.com,而不是www.example2.com。 It's almost like it's using a default. 几乎就像使用默认值一样。

For what it's worth I'm using the Mean Stack instance. 对于值得使用的是Mean Stack实例。 I tried configuring the apache ssl but there was no virtualhost entry in the http.conf file and modifying that file to include didn't fix my issue. 我尝试配置apache ssl,但是http.conf文件中没有virtualhost条目,并且对该文件进行修改以使其包含在内并不能解决我的问题。

This was a painful problem to solve. 这是一个痛苦的问题。 Turns out it was an issue with Bitnami MEAN. 原来这是Bitnami MEAN的问题。 Updating the traditional apache config files wasn't the solution. 解决方案不是更新传统的apache配置文件。 instead I needed to update the /opt/bitnami/apache2/conf/bitnami/bitnami.conf file. 相反,我需要更新/opt/bitnami/apache2/conf/bitnami/bitnami.conf文件。

Found the answer from this forum: https://community.bitnami.com/t/cannot-start-apache2-when-loading-extra-httpd-ssl-conf-on-wamp-stack/21980/5 从此论坛找到答案: https : //community.bitnami.com/t/cannot-start-apache2-when-loading-extra-httpd-ssl-conf-on-wamp-stack/21980/5

specify the path where you have to put your certificate and key are 指定必须放置证书和密钥的路径

SSLCertificateFile "installdir/apache2/conf/server.crt" SSLCertificateKeyFile "installdir/apache2/conf/server.key" SSLCertificateFile“ installdir / apache2 / conf / server.crt” SSLCertificateKeyFile“ installdir / apache2 / conf / server.key”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM