Asterisk ARI with secure websocket wss not working

Hello,

I am trying to get run secure websocket , wscat --connect ‘wss://localhost:8089/ari/events?app=hello&api_key=aritest:testme’

I have made set up for asterisk ARI, all is working fine, the simple wscat --connect ‘ws://localhost:8088/ari/events?app=hello&api_key=aritest:testme’ working fine.
But while I am running wscat command with wss I am getting error: Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE, please help me regarding this.

I have made this configuration in http.conf file, asterisk.pem file was generated with command,
./ast_tls_cert -C pbx.mycompany.com -O “My Super Company” -d
/etc/asterisk/keys

[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088

tlsenable=yes ; enable tls - default no.
tlsbindaddr=127.0.0.1:8089 ; address and port to bind to - default is bindaddr and port 8089.
;tlscertfile=</path/to/certificate.pem> ; path to the certificate file (.pem) only.
;tlsprivatekey=</path/to/private.pem> ; path to private key file (
.pem) only.
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlsprivatekey=/etc/asterisk/keys/asterisk.pem

Regards,

Ketan