Hello,
Just to keep you in the loop, I am still analyzing this issue.
It seems that shellinabox (Service responsible for CLI via WebUI) runs with an option to not allow adding the exception for self-signed certificates. I'm looking into it further.
However, is there a reason you are not using SSH connection for command line?