Trusting self-signed certificates on a Macbook

Sometimes I need to create self-signed certificates and interact with an application in the browser. The browser and OS don't really like that. But I know its secure, and temporary, so I want to tell my computer to chill out and trust the CA. Command I use to generate the self-signed cert: openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ -keyout mycert.key -out mycert.crt \ -subj…