Skip to content

Instantly share code, notes, and snippets.

@HanSooloo
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HanSooloo/e53cfa6541c9668a3f73 to your computer and use it in GitHub Desktop.
Save HanSooloo/e53cfa6541c9668a3f73 to your computer and use it in GitHub Desktop.
Sample OpenVPN config
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>Challenge</key>
<string>foo</string>
<key>Key Type</key>
<string>RSA</string>
<key>Key Usage</key>
<integer>5</integer>
<key>Keysize</key>
<integer>1024</integer>
<key>Name</key>
<string>VPNCertificate</string>
<key>Subject</key>
<array>
<array>
<array>
<string>O</string>
<string>vpn.example.com</string>
</array>
</array>
<array>
<array>
<string>CN</string>
<string>VPNCertificate (ebbda99c-3b52-4602-9f44-1a0531dde2f7)</string>
</array>
</array>
</array>
<key>URL</key>
<string>https://vpn.example.com/scep</string>
</dict>
<key>PayloadDescription</key>
<string>Provides device encryption identity</string>
<key>PayloadDisplayName</key>
<string>VPNCertificate</string>
<key>PayloadIdentifier</key>
<string>com.example.encryption-cert-request</string>
<key>PayloadOrganization</key>
<string>example.com</string>
<key>PayloadType</key>
<string>com.apple.security.scep</string>
<key>PayloadUUID</key>
<string>321387af-7a23-409f-8efa-1cafa2473dcc</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
<dict>
<key>PayloadDescription</key>
<string>Install this profile to access the VPN service</string>
<key>PayloadDisplayName</key>
<string>example.com VPN Service Configuration</string>
<key>PayloadIdentifier</key>
<string>com.example.vpn.VPNService</string>
<key>PayloadOrganization</key>
<string>example.com</string>
<key>PayloadType</key>
<string>com.apple.vpn.managed</string>
<key>PayloadUUID</key>
<string>a3ca392b-2b8d-4b9d-8f97-bc0557c6316b</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>VPN</key>
<dict>
<key>AuthenticationMethod</key>
<string>Certificate</string>
<key>PayloadCertificateUUID</key>
<string>321387af-7a23-409f-8efa-1cafa2473dcc</string>
<key>RemoteAddress</key>
<string>vpn.example.com</string>
</dict>
<key>VPNSubType</key>
<string>net.openvpn.OpenVPN-Connect.vpnplugin</string>
<key>VPNType</key>
<string>VPN</string>
<key>VendorConfig</key>
<dict>
<key>client</key>
<string>NOARGS</string>
<key>comp-lzo</key>
<string>NOARGS</string>
<key>dev</key>
<string>tun</string>
<key>nobind</key>
<string>NOARGS</string>
<key>redirect-gateway</key>
<string>NOARGS</string>
<key>remote</key>
<string>vpn.example.com</string>
</dict>
</dict>
</array>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment