Problem running rasa with ssl-certificate

Hi, I am trying to tun rasa using command rasa run --ssl-certificate myssl.crt --ssl-keyfile myssl.key --ssl-password mypassword

I am passing the certificate and key along with password to this command but I am getting an error rasa run: error: invalid choice: ‘rasassl.crt’ (choose from ‘actions’)

I am using the latest version downloaded from github.

Is it a self-signed certificate?

@Gehova yes it is a self signed certificate.

Is it because of that? If I pass it the other one will it work?

For what channel? Does it have a documentation for self signed certificates?

For example, telegram has it in its webhook guide:

@Gehova I am using REST channel for accessing rasa

I am trying to run rasa using command-

rasa run -m models --enable-api --endpoints endpoints.yml -p 5005 --ssl-certificate myssl.crt --ssl-keyfile myssl.key --ssl-password mypassword

Try a pem certificate created like:

openssl req -newkey rsa:2048 -sha256 -nodes -keyout <mykey>.key -x509 -days 365 -out <mycertificate>.pem -subj "/C=<Country>/ST=<State>/L=<City>/O=<Organization>/CN=<Your IP>"

An try running rasa with the following command:

rasa run --log-file out.log --ssl-certificate <mycertificate>.pem --ssl-keyfile <mykey>.key --port 443

Port 443 is the default for https. I’m not sure how to handle the REST channel, because according to the documentation, it doesn’t require credentials.