【问题标题】:import signed cert issue apache导入签名证书问题 apache
【发布时间】:2017-10-12 07:37:34
【问题描述】:

这是我第一次导入签名证书。 做了这里提到的一切: http://haraldwingerter.de/?p=267

现在我收到以下错误:

apache2ctl configtest
AH00526: Syntax error on line 3 of /etc/apache2/sites-enabled/000-default.conf:
ServerName takes one argument, The hostname and port of the server
Action 'configtest' failed.
The Apache error log may have more information.

日志什么也没说。

/etc/apache2/sites-enabled/000-default.conf

 <VirtualHost *:443>
DocumentRoot /var/www/owncloud
ServerName <servername> (ODER IP-Adresse)
  <IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
  </IfModule>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/servername.crt
SSLCertificateKeyFile /etc/ssl/private/servername.key
</VirtualHost>

/etc/apache2/sites-available/default-ssl.conf

 DocumentRoot /var/www/owncloud
 SSLCertificateFile /etc/ssl/certs/servername.crt
 SSLCertificateKeyFile /etc/ssl/private/servername.key

我认为我的所有配置都正确。问题在哪里找不到。

感谢您的帮助 汤米

【问题讨论】:

  • 你已经放了所有随机的东西,但是真正的错误来了,你隐藏了这些值。

标签: linux ssl


【解决方案1】:

抱歉遗漏了细节!

现在我摆脱了这个错误,但仍然没有在网页上看到新证书。

刚刚在 /etc/apache2/sites-available/default-ssl.conf 中更改了以下几行:

            SSLCertificateFile /etc/ssl/certs/owncloud.crt
            SSLCertificateKeyFile /etc/ssl/certs/owncloud.key
            SSLCertificateChainFile /etc/ssl/certs/DigiCertCA.crt

owncloud.crt > 我从digicert得到的文件

owncloud.key > 之前通过csr生成的key

DigiCertaCA.crt > 我获得的新证书文件

就像这里描述的那样完成 https://www.digicert.com/ssl-certificate-installation-apache.htm

【讨论】:

    猜你喜欢
    • 2013-06-07
    • 2014-04-07
    • 1970-01-01
    • 2021-05-17
    • 1970-01-01
    • 1970-01-01
    • 2015-10-07
    • 1970-01-01
    • 2020-09-20
    相关资源
    最近更新 更多