How to setup ssl certificate for custom action server

I’m trying to host a custom (.NET REST) Rasa Action Server. I can hit my REST server with postman at the expected address. However, when I add the endpoint of my action server to the endpoints.yaml (url: “http://localhost:5278/webhook”) file and run an action that will hit my action server, I get the following error: Failed to run custom action ‘customaction1’. Couldn’t connect to the server at ‘http://localhost:5278/webhook’. Is the server running? Error: Cannot connect to host localhost:7278 ssl:True [SSLCertVerificationError: (1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)’)]

So it appears that the problem is that Rasa is trying to use ssl verification to connect to my server. However, I’ve given Rasa an http address not an https address so I’m not sure why this is the case. I tried searching for others with this issue and couldn’t find anything close enough to the problem I’m seeing to be useful. Does anyone know what I need to do to either get Rasa to stop trying to use SSL with my http server or how to generate an ssl certificate and tell Rasa to use it when connecting to my rest server as an https server?

1 Like

@ski23

What does your endpoints.yml contains?

It just has the action server url and pretty much nothing else. I was able to get a hack working where I modified rasa code and added “verify_ssl” False to one of the aiohttp connection calls.

Can you explain bit in detail. We are facing same issue since last 20 days. Kindly help

1 Like

Hi @ski23 … I’m also facing same issue… help me if you had found any solution