#this is a sample configuration file that I have used successfully.  I included it
#as a reference baseline that can be used when testing.

#remote myvpnserver.dyndns.org 443
client
proto tcp
nobind
dev tun
comp-lzo

verb 3

resolv-retry infinite
persist-key
persist-tun


#explicit Windows Connection Manager provider selection; like what is on
#the Settings 2 tab, but can be set here in the config file.  Use either
#the provider name or GUID (if you know it).  The 1 indicates 'exclusive'.
;conmgr "Sprint" 1
;conmgr {F079757F-9357-4000-8305-9CA6B9B6CAEC} 1

#especially if we are using the connection manager 'exclusive', then you'll
#need to redirect the gateway since the connection provided by connection
#manager will be otherwise unavailable (i.e., 'exclusive').  You'll probably
#need to specify an alternate DNS server as well.  These can be pushed from
#the server, or if you don't want to push them you can explicitly set them
#here in the client file
;redirect-gateway def1
;dhcp-option DNS 192.168.173.1


#crypto certificate stuff================================
#In version 2.1, you can put the files inline using an xml-esque syntax.
#Shown here is the syntax (with the equivalent old-style form commented out).
#Essentially, you copy the contents of the relevant file here, between
#the tags.

#Note, the crypto files included here are the openvpn test files and
#are for demonstration only.



#tls-auth settings; if needed.=========

ns-cert-type server
#tls-auth "\\Program Files\\OpenVPN\\crypto\\testtlsauth.key" 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
561966e5f439fb0cc7f87b4df2d39afb
98b2f47fa1e3321b1802e7396bdd8c6c
8f190792ddc2a3e4d8a6191c376498d8
8d86be0d8618fd2ef8243047dd037925
2eb5300f0f62553e6c6140aa1c1304dc
19e4b0d75a081bed320d7595dfd8c9eb
825dd08870635a63e157a65a0c9040ab
d64af30902f1aa0a773285d3037b4121
39c457b3caa2d80754118c5fc37e7d9e
bb36fd5a3abedce0de3976a6c40d2790
6802c56427be84c616a6ad7ae26c896f
b08efafde0b95d5fdb07b4ec164cd5ee
bee059c356c3423b27ccfe3b5df8ba00
7e2cca2150f11a2c2f93b095272c00eb
8f502fa4c9444bf728f22739c8669e57
aa9aa0e910ee0a3b913d886bedd767c4
-----END OpenVPN Static key V1-----
</tls-auth>
key-direction 1



#The CA's certificate==================

#ca "\\Program Files\\OpenVPN\\crypto\\ca.crt"
<ca>
-----BEGIN CERTIFICATE-----
MIIDBjCCAm+gAwIBAgIBADANBgkqhkiG9w0BAQQFADBmMQswCQYDVQQGEwJLRzEL
MAkGA1UECBMCTkExEDAOBgNVBAcTB0JJU0hLRUsxFTATBgNVBAoTDE9wZW5WUE4t
VEVTVDEhMB8GCSqGSIb3DQEJARYSbWVAbXlob3N0Lm15ZG9tYWluMB4XDTA0MTEy
NTE0NDA1NVoXDTE0MTEyMzE0NDA1NVowZjELMAkGA1UEBhMCS0cxCzAJBgNVBAgT
Ak5BMRAwDgYDVQQHEwdCSVNIS0VLMRUwEwYDVQQKEwxPcGVuVlBOLVRFU1QxITAf
BgkqhkiG9w0BCQEWEm1lQG15aG9zdC5teWRvbWFpbjCBnzANBgkqhkiG9w0BAQEF
AAOBjQAwgYkCgYEAqPjWJnesPu6bR/iec4FMz3opVaPdBHxg+ORKNmrnVZPh0t8/
ZT34KXkYoI9B82scurp8UlZVXG8JdUsz+yai8ti9+g7vcuyKUtcCIjn0HLgmdPu5
gFX25lB0pXw+XIU031dOfPvtROdG5YZN5yCErgCy7TE7zntLnkEDuRmyU6cCAwEA
AaOBwzCBwDAdBgNVHQ4EFgQUiaZg47rqPq/8ZH9MvYzSSI3gzEYwgZAGA1UdIwSB
iDCBhYAUiaZg47rqPq/8ZH9MvYzSSI3gzEahaqRoMGYxCzAJBgNVBAYTAktHMQsw
CQYDVQQIEwJOQTEQMA4GA1UEBxMHQklTSEtFSzEVMBMGA1UEChMMT3BlblZQTi1U
RVNUMSEwHwYJKoZIhvcNAQkBFhJtZUBteWhvc3QubXlkb21haW6CAQAwDAYDVR0T
BAUwAwEB/zANBgkqhkiG9w0BAQQFAAOBgQBfJoiWYrYdjM0mKPEzUQk0nLYTovBP
I0es/2rfGrin1zbcFY+4dhVBd1E/StebnG+CP8r7QeEIwu7x8gYDdOLLsZn+2vBL
e4jNU1ClI6Q0L7jrzhhunQ5mAaZztVyYwFB15odYcdN2iO0tP7jtEsvrRqxICNy3
8itzViPTf5W4sA==
-----END CERTIFICATE-----
</ca>



#The vpn client's certificate==========

#cert "\\Program Files\\OpenVPN\\crypto\\client.crt"
<cert>
-----BEGIN CERTIFICATE-----
MIIDNTCCAp6gAwIBAgIBAjANBgkqhkiG9w0BAQQFADBmMQswCQYDVQQGEwJLRzEL
MAkGA1UECBMCTkExEDAOBgNVBAcTB0JJU0hLRUsxFTATBgNVBAoTDE9wZW5WUE4t
VEVTVDEhMB8GCSqGSIb3DQEJARYSbWVAbXlob3N0Lm15ZG9tYWluMB4XDTA0MTEy
NTE0NDY0OVoXDTE0MTEyMzE0NDY0OVowajELMAkGA1UEBhMCS0cxCzAJBgNVBAgT
Ak5BMRUwEwYDVQQKEwxPcGVuVlBOLVRFU1QxFDASBgNVBAMTC1Rlc3QtQ2xpZW50
MSEwHwYJKoZIhvcNAQkBFhJtZUBteWhvc3QubXlkb21haW4wgZ8wDQYJKoZIhvcN
AQEBBQADgY0AMIGJAoGBANISXMZNEzSuz/qr/svejPFLSpUoYIeCLLjB5Y7GXRFY
YaSl8ULXhnRsnZx68DpcKeZTO15t2PBFBiwj7gm8Ao8OuNUzH8NKEQJIC8xLrW50
4KJTsdbMibnib9sVsxkeVwR5SDradjH8v9M0Iecy2J4GTr7z43mwVP3RQjKqPnrB
AgMBAAGjge4wgeswCQYDVR0TBAIwADAsBglghkgBhvhCAQ0EHxYdT3BlblNTTCBH
ZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFBe3P8dioKn9pDEOWNfZlHtL
P8tWMIGQBgNVHSMEgYgwgYWAFImmYOO66j6v/GR/TL2M0kiN4MxGoWqkaDBmMQsw
CQYDVQQGEwJLRzELMAkGA1UECBMCTkExEDAOBgNVBAcTB0JJU0hLRUsxFTATBgNV
BAoTDE9wZW5WUE4tVEVTVDEhMB8GCSqGSIb3DQEJARYSbWVAbXlob3N0Lm15ZG9t
YWluggEAMA0GCSqGSIb3DQEBBAUAA4GBAGHG0fokD8e+CTvYBBdjMRcH+VaZr0xn
+tvLlM9VpXsWIItCZBMjYkUok14299sClaHp/eMPjXOhew5VeE2lxLciEqDuVeC4
DsmbEuOw75tok1dubK0WaI6NMDP+KhvDA4+2Ci0MsTy7+Vg/jIFZaxTdYrXCk+1d
xhkPm0tSs3x4
-----END CERTIFICATE-----
</cert>



#The vpn client's private! key=========

#key "\\Program Files\\OpenVPN\\crypto\\client.key"
<key>
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDSElzGTRM0rs/6q/7L3ozxS0qVKGCHgiy4weWOxl0RWGGkpfFC
14Z0bJ2cevA6XCnmUztebdjwRQYsI+4JvAKPDrjVMx/DShECSAvMS61udOCiU7HW
zIm54m/bFbMZHlcEeUg62nYx/L/TNCHnMtieBk6+8+N5sFT90UIyqj56wQIDAQAB
AoGBAK8RoIGekCfym99DYYfTg9A/t/tQeAnWYaDj7oSrKbqf1lgZ91OGPEZgkoVr
KzLnxf9uU+bhUs8CJx+4HdO8/L9rAJA+oD9QNuMp0elN4AKuEGE1Eq3a0e3cmgPI
+VIoXM6WVAGgK9I03Zu/UerYQ/DdXWGOIsKhFe8qyQoG9pKxAkEA9ld6O9MHQt3d
JAjJkgCNn4psozxjrfLWy2huXd3H3CRqGMjLITDGzdkVSgXjHokBYroi0+TZTu4M
ulJSJaWwBQJBANpO2DAexH2zRHw5Z6QyeEVxz7B3/FzU4GgJx9BH+FSBh+F0G5Ln
ir5Vst8vZ/LGcgpYjHQLNAvZVgUjiQ4Y6I0CQGvwMJL+CHR4GmmroAblTyjU0n1D
/Lk/anZ+L73Za7U+D28ErFzCrpmLwRRKOBYtGfpUbOZDpCQ9kj4hy/TLALECQCcL
9ysUNbzt9Y/qjJkX1d9F7gn4TBEmmkTBixW76bTjvjQbGlt6Qpyso2O8DPGlgPxM
vkJ7RoHgC7y7kGYPGnkCQBVxSNGIjLx4NQBgN4HD0y4+fars1PTUGnckBcS4npb9
onLNyerBlWdBwbARyBS7WPIbyyf5VCrn3yIqWxaARO0=
-----END RSA PRIVATE KEY-----
</key>
