'Run a command locally with Bolt

I'm currently sending SSL certificates and private keys on remote machines with Bolt taking care if they already exist or not.

Now I want to check that my certificate and private key match before sending anything (read : never trust the guy who gave you the files).

How can I run openssl locally to check it beforehand ?

I know I could send the files, check them remotely then copy them in the right location but that's a bit too much.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source