尝试在Google App Engine上获取托管证书时出现404错误。

huangapple go评论118阅读模式
英文:

404 Error When trying to obtain managed certificate on google app engine

问题

我正在尝试获取一个托管证书,以便使我的应用引擎应用程序可以通过自定义域名访问。我已经成功添加了域名,并创建了DNS记录。然而,现在我遇到了一个问题:自定义域名一直处于“证书正在激活”状态。我检查了日志,似乎谷歌证书服务正在向我的应用发送GET请求,路径为.well-known/acme-challenge/<challenge string>。由于我的应用没有设置响应该URL的功能,这些请求返回了404错误。

我的应用是用Go语言构建的,app.yaml文件的内容如下(省略了环境变量):

runtime: go120  # 或其他支持的版本
app_engine_apis: true

env_variables:
  MY_VAR: 'my-val'
  ...

我是否需要进行其他设置?我是否需要将acme challenge请求重定向到谷歌服务?我在文档中没有找到相关信息。

英文:

I'm trying to get a managed certificate to make my app engine application accessible from a custom domain. I managed to add the domain, and I also created the DNS records. However, now I'm running into a problem: The custom domain is stuck in the "certificate being activated" state. I checked my logs, and it seems that the google certificate service is making GET requests to my app, under .well-known/acme-challenge/&lt;challenge string&gt;. These are returning 404, because my app isn't set up to respond on that URL.
尝试在Google App Engine上获取托管证书时出现404错误。
尝试在Google App Engine上获取托管证书时出现404错误。

The app is built in Go, and the app.yaml has the following content (environment variables are omitted).

runtime: go120  # or another supported version
app_engine_apis: true

env_variables:
  MY_VAR: &#39;my-val&#39;
  ...

Is there something else I need to set up? Do I somehow need to redirect the acme challenge requests to a google service? I haven't been able to find anything in the docs.

答案1

得分: 1

在等待了两个小时后,它突然开始工作了。我喜欢云端...

英文:

It randomly started working after waiting for two hours. I love the cloud...

答案2

得分: 1

这个问题也困扰了其他人,幸运的是,在你的情况下,问题在一段时间后自行解决了。在其他情况下,需要重新配置一切(删除自定义域名,添加自定义域名,验证)。我找到了两个相同的案例,通过这种方法解决了问题。以下是链接:

https://stackoverflow.com/questions/69306324/constant-request-of-acme-challenge-file-on-appengine-from-google

https://stackoverflow.com/questions/48189584/google-app-engine-custom-domain-is-not-activating-google-managed-ssl

英文:

This has been an issue for others as well, it's fortunate in your case that it was resolved by itself after some time. In other cases, what was needed was to reconfigure everything again (remove custom domain, add custom domain, validate. I've found 2 identical cases That were resolved by the said method.<br><br>https://stackoverflow.com/questions/69306324/constant-request-of-acme-challenge-file-on-appengine-from-google<br>https://stackoverflow.com/questions/48189584/google-app-engine-custom-domain-is-not-activating-google-managed-ssl<br>

huangapple
  • 本文由 发表于 2023年6月20日 04:58:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76510042.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定