I'm using Laravel Valet in my local environment, and I have secured in by running "valet secure". However, I would like to use a custom certificate, and I can't find any information on how to change from the default certificate. I need to change because I'm integrating a third party service which needs a specific certificate for testing.
Here's the Valet file responsible for securing a site. Based on this, you may need to create your own driver (see docs), or clone the repository, and modify this file to include your own.
If you have the certificate and key files needed, you can simply refer to them in the nginx config file for the site - on a Mac, this is ~/.config/valet/Nginx/your.site.test. AFAIK, that file will exist only after having valet secure on your site, so you will be replacing the lines: