服务器由于来自Fritzbox的域错误而拒绝请求

问题描述 投票:-1回答:1

我正在尝试通过IPv6访问本地服务器,由于证书问题,该服务器失败。

例如nextcloud客户端给出以下错误:

$nextcloudcmd --trust --logdebug Nextcloud https://nextcloud.domain.de

10-20 12:47:43:798 [ info nextcloud.sync.accessmanager ]:   2 "" "https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json" has X-Request-ID "19a2a694-1912-4813-b3f5-2d4d5720fa80"

10-20 12:47:43:799 [ info nextcloud.sync.networkjob ]:  OCC::JsonApiJob created for "https://nextcloud.domain.de" + "ocs/v1.php/cloud/capabilities" ""

10-20 12:47:43:955 [ info nextcloud.sync.account ]: "SSL-Errors happened for url  \"https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json\" \tError in  QSslCertificate(\"3\", \"f9:8e:0f:4f:bd:4b:a3:5f\", \"hkXxG7tBu+SGaRSBZ9gRyw==\", \"<hostname>.domain.de\", \"<hostname>.domain.de\", QMap((1, \"www.fritz.nas\")(1, \"fritz.nas\")(1, \"<WiFi-Name>\")(1, \"www.myfritz.box\")(1, \"myfritz.box\")(1, \"www.fritz.box\")(1, \"fritz.box\")(1, \"<hostname>.domain.de\")), QDateTime(2019-10-19 12:32:25.000 UTC Qt::UTC), QDateTime(2038-01-15 12:32:25.000 UTC Qt::UTC)) : \"The host name did not match any of the valid hosts for this certificate\" ( \"The host name did not match any of the valid hosts for this certificate\" ) \n \tError in  QSslCertificate(\"3\", \"f9:8e:0f:4f:bd:4b:a3:5f\", \"hkXxG7tBu+SGaRSBZ9gRyw==\", \"<hostname>.domain.de\", \"<hostname>.domain.de\", QMap((1, \"www.fritz.nas\")(1, \"fritz.nas\")(1, \"<WiFi-Name>\")(1, \"www.myfritz.box\")(1, \"myfritz.box\")(1, \"www.fritz.box\")(1, \"fritz.box\")(1, \"<hostname>.domain.de\")), QDateTime(2019-10-19 12:32:25.000 UTC Qt::UTC), QDateTime(2038-01-15 
12:32:25.000 UTC Qt::UTC)) : \"The certificate is self-signed, and untrusted\" ( \"The certificate is self-signed, and untrusted\" ) \n " Certs are known and trusted! This is not an actual error.

10-20 12:47:43:964 [ warning nextcloud.sync.networkjob ]:   QNetworkReply::ProtocolInvalidOperationError "Server replied \"400 Bad Request\" to \"GET https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json\"" QVariant(int, 400)

10-20 12:47:43:964 [ info nextcloud.sync.networkjob.jsonapi ]:  JsonApiJob of QUrl("https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json") FINISHED WITH STATUS "ProtocolInvalidOperationError Server replied \"400 Bad Request\" to \"GET https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json\""

10-20 12:47:43:964 [ warning nextcloud.sync.networkjob.jsonapi ]:   Network error:  "ocs/v1.php/cloud/capabilities" "Server replied \"400 Bad Request\" to \"GET https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json\"" QVariant(int, 400)

10-20 12:47:43:964 [ debug default ]    [ main(int, char**)::<lambda ]: Server capabilities QJsonObject()
Error connecting to server

我不知道为什么Fritzbox尝试通过.domain.de而不是nextcloud.domain.de进行请求。

有人能指出我正确的方向吗?

subdomain ipv6 lets-encrypt fritzbox
1个回答
0
投票

好的,您从站点上获得了信息(德语:https://avm.de/service/fritzbox/fritzbox-7580/wissensdatenbank/publication/show/3525_Zugriff-auf-HTTPS-Server-im-Heimnetz-nicht-moglich#zd),这使我得出以下结论。

由于您没有用于IPv6地址的NAT,并且fritzbox也无法做到这一点,因此IPv6必须来自服务器。因此,我找到的一种解决方案是ddclient。通过将其安装在GNU \ Linux服务器上,它将在DynDNS提供程序处更新IPv6地址。但是有一件事仍然是未解决的。我无法更新IPv4和IPv6。

© www.soinside.com 2019 - 2024. All rights reserved.