Provide own key and cert
Provide own certificate and key
You can provide your own certificate and key using -s -sk <key> -sc <certificate>.
Warning
Notice that this only works with keys that have no passphrases. You could convert your key like: openssl rsa -in [original.key] -out [new.key].
Provide own p12 file
If you want to keep your certificate file protected by a passphrase but use it with goshs you can do so by using a p12 file.
First you convert your certificate and key to a p12 file like so:
Now you can use it with -s -p12 and goshs will ask for the password of the p12 file before starting: