Skip to content

Instantly share code, notes, and snippets.

@nathando
Created April 12, 2017 10:13
Show Gist options
  • Select an option

  • Save nathando/f827f0c7d6cbbfba320e826fe93c76d3 to your computer and use it in GitHub Desktop.

Select an option

Save nathando/f827f0c7d6cbbfba320e826fe93c76d3 to your computer and use it in GitHub Desktop.
Concat cert into ovpn profile
#!/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