Created
April 12, 2017 10:13
-
-
Save nathando/f827f0c7d6cbbfba320e826fe93c76d3 to your computer and use it in GitHub Desktop.
Concat cert into ovpn profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| client=$1 | |
| (echo '<ca>'; cat ca.crt; echo '</ca>';) >> $client.ovpn | |
| (echo '<cert>'; cat $client.crt; echo '</cert>';) >> $client.ovpn | |
| (echo '<key>'; cat $client.key; echo '</key>';) >> $client.ovpn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment