简体   繁体   English

Dialogflow fulfillment webhook url 支持自签名证书吗?

[英]Dialogflow fulfilment webhook url support self signed certificates?

I am using Dialogflow fulfilment webhook for weather.我正在为天气使用 Dialogflow fulfillment webhook。

Dialogflow says "You can use only https:// in fulfillment url when "Google Assistant" integration enabled" Dialogflow 说“启用“Google Assistant”集成后,您只能使用 https:// 实现 url”

so, I tried Self-Signed certificates for https url. but I can't get webhook response.所以,我尝试了 https url 的自签名证书。但我无法获得 webhook 响应。

I can't use Self-Signed certificates for webhook url?我不能为 webhook url 使用自签名证书吗?

thank you for anyhelp!感谢您的任何帮助!

I found the answer myself after I have tried for 7 days.经过7天的尝​​试,我自己找到了答案。

Dialogflow fulfilment webhook url doesn't support self signed certificates. Dialogflow 履行网络钩子 url 不支持自签名证书。

so, I used heroku and aws lambda.所以,我使用了 heroku 和 aws lambda。

they support https and worked fine with Dialogflow webhook.他们支持 https 并且与 Dialogflow webhook 一起工作得很好。

I hope it will be helpful for everyone.我希望它对每个人都有帮助。

I tried several times to use Self-Signed certificates but I was not able to do it.我多次尝试使用自签名证书,但我无法做到。 I had to get a "SSL DV Standard" and the webhook started working properly.我必须获得“SSL DV 标准”并且网络钩子开始正常工作。

If you gived up about using SSL here is how to remove Google Assistant integration and use http webhook :如果您放弃使用 SSL,这里是如何删除 Google Assistant 集成并使用 http webhook 的方法:

  1. Export your DialogFlow bot :导出您的 DialogFlow 机器人:

出口

  1. Delete the bot:删除机器人:

在此处输入图片说明

  1. Create a new empty bot and set a http webhook :创建一个新的空机器人并设置一个 http webhook:

在此处输入图片说明

  1. Import your previously exported bot :导入您之前导出的机器人:

在此处输入图片说明

  1. Now you should have your previous bot working & released from Google Assistant现在你应该让你以前的机器人工作并从 Google Assistant 中释放出来

The self signed certificate is not supported ,instead you could use ngrok to convert http://localhost:8080 to https.不支持自签名证书,您可以使用 ngrok 将 http://localhost:8080 转换为 https。 Link is here https://ngrok.com/download链接在这里https://ngrok.com/download

Another solution to get an HTTPS link, if you don't want to deploy the product in a global server yet, you can use libraries like Localtunnel and Ngrok which generate a safe HTTPS link of the localhost ports for some hours( useful for POCs, demos, testing)另一种获得 HTTPS 链接的解决方案,如果您还不想在全球服务器中部署产品,您可以使用像 Localtunnel 和 Ngrok 这样的库,它们会生成本地主机端口的安全 HTTPS 链接几个小时(对 POC 很有用,演示,测试)

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

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