Skip to content

Instantly share code, notes, and snippets.

@ishrakr
Last active July 23, 2018 21:18
Show Gist options
  • Save ishrakr/96e36ba3bc01431ec2fb8689ab717d6d to your computer and use it in GitHub Desktop.
Save ishrakr/96e36ba3bc01431ec2fb8689ab717d6d to your computer and use it in GitHub Desktop.
/certificate
add name=ovpn-local-ca common-name="ovpn_local_ca" key-size=4096 days-valid=3650 key-usage=crl-sign,key-cert-sign
sign ovpn_local_ca ca-crl-host=127.0.0.1 name="ovpn_local_ca"
add name=ovpn_local_server common-name="ovpn_local_server" key-size=4096 days-valid=3650 key-usage=digital-signature,key-encipherment,tls-server
sign ovpn_local_server ca="ovpn_local_ca" name="ovpn_local_server"
add name=ovpn_local_client common-name="ovpn_local_client" key-size=4096 days-valid=3650 key-usage=tls-client
sign ovpn_local_client ca="ovpn-local-ca" name="ovpn_local_client"
export-certificate "ovpn_local_ca" export-passphrase=""
export-certificate "ovpn_local_client" export-passphrase="password"
openssl rsa -passin pass:password -in cert_export_ovpn_local_client.key -out cert_export_ovpn_local_client.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment