%PDF- %PDF-
Direktori : /usr/share/doc/openvpn/examples/sample-config-files/ |
Current File : //usr/share/doc/openvpn/examples/sample-config-files/loopback-client |
# Perform a TLS loopback test -- client side. # # This test performs a TLS negotiation once every 10 seconds, # and will terminate after 2 minutes. # # From the root directory of the OpenVPN distribution, # after openvpn has been built, run: # # ./openvpn --config sample-config-files/loopback-client (In one window) # ./openvpn --config sample-config-files/loopback-server (Simultaneously in another window) # # this config file has the crypto material (cert, key, ..) "inlined", # while the "server" config has it as external reference - test both paths rport 16000 lport 16001 remote localhost local localhost dev null verb 3 reneg-sec 10 tls-client remote-cert-tls server #ca sample-keys/ca.crt <ca> -----BEGIN CERTIFICATE----- MIIGPjCCBCagAwIBAgIUb1C400ZucjRZvAAz3XyuEusnRgYwDQYJKoZIhvcNAQEL BQAwZjELMAkGA1UEBhMCS0cxCzAJBgNVBAgMAk5BMRAwDgYDVQQHDAdCSVNIS0VL MRUwEwYDVQQKDAxPcGVuVlBOLVRFU1QxITAfBgkqhkiG9w0BCQEWEm1lQG15aG9z dC5teWRvbWFpbjAeFw0yMzExMDcxMjIzMzlaFw0zMzExMDQxMjIzMzlaMGYxCzAJ BgNVBAYTAktHMQswCQYDVQQIDAJOQTEQMA4GA1UEBwwHQklTSEtFSzEVMBMGA1UE CgwMT3BlblZQTi1URVNUMSEwHwYJKoZIhvcNAQkBFhJtZUBteWhvc3QubXlkb21h aW4wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCI+p/ZLGUHCANTTFaK nw+J3wi+ef2EKJ5WHt5PWMuBeaDpeU4Ghuaow8HlRPjG9lDRHtn+WQgZz9nUejYH +wtmN2BHwJAM4OeUVoB95tBrxd/VDCrdIvypVKldHsU3VkEbvPAl1jq68WVk+DXM FZqTUoafDK+irOvL7Z5j2gA3FDzRUQs0L+jCvRTl4omFSjSQwoBCoVXxNEAg9jgy lNWUHx+JHDB8dk+gEmDai20ggBWeAeThUU9dVZvwjv4E7zMRMx1skCRdWcyALJQf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+Rqnp2++p33lbE4J09zfIkh5hV RvCSzaE0Z3Kly9237CV+DyAqzrBJq5HHN/AT6+xFd2yGPMPKH8hKbf3jIprexNEp oG1XC/dsPFkPLUyeD++kVjzsLiDmYAn2x3Dco6cWD7FfEljb1pHkAp5CctU9TjZH 21xcAsPbfS0vrDmj8zG7eTU+BtleL4AfxEVsMBzrUB6jSdUMpJ/hRtni4RxOHLmU 0DqtHIqrDrC5Gb2KunNUIYqPp+80LSD1/Edo5Vr+k5AiFYCzZFXSab+6e4hEsLEV nQNMmcPVWATQ2najGfNftmhwQx9hU4gJaCw/rfhEmwIif5BxgG5VPUzy97T+GmOZ InB0RDylv3Lq3Hs8mBF4nRt7 -----END CERTIFICATE----- </ca> #key sample-keys/client.key <key> -----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDdrrIKQObP4cGi odKDLDGY4huyhUBnAPqrv8+dFNHGt2ODql+cFKDSTQQ6SpLmkkukhkAmQr2Dt/xJ t1bSyudwhRaPizvaR56LakrI5qjermstUiIMnc9nu30eZgVTi3yurdGmUl89nmso GFfZoUItwLBN2krwKaoCNIYCqq9nCQbtRSGOjPh1Vsfq6E+IjhyLW2gtsWal5MY2 4nCN/u8Q8FL4U5a/flFw8j+uWIc40aNr9jhRmxbOZzWObXZjTWubfXfaVW8gsWZP mi2kczpSIYY886ZaZ+V9EPU2ViF+AyK9mOkYtD+ztQ3t1e9Ulm+dRmxvDrpLGvfM 1OUkutKlAgMBAAECggEANwi9ron6QzWaqtNdva7lCT1o/uLR4EB/+s99rVOT2K+C hxdu8QK2Aj+YgxgsbA15tfiWSGldPywX9/0KEv7IgkioFy7Lxx7sn1PeCQ4qck3+ 0ZuIVHWBHhGPuFI/lEQWyg7g81eTyWpg0+1nMeI02cLyggFlhUXyrOV5N4REU2GW C0KBQFyVQJPrFszomK8qsHOu/gaGC1vOwgIID3cQ3iLKXkoHNmHO4hgbeSy+SfDP Q5C0xxKQa2RUz0nLbByuGtLYOsJmbjUMWjFXyjmwBsPCcvRmFRdnxFvlnzwGEH4M ZKsw+49p1iJFyuCv7KJ/ILLJmoEuryjrSmdj3esIqQKBgQDwC24VBQLNmlug8rkG YWaRePsWRJylDlWIeHnfmGe27p7ytxOvGe6hnPu6nfg8nXHtruZCIhGya6qbuVmL vGrg94ia4MSpDVUgGiElXXQ/Pl7O9/lnSlIlxcBAgd8uggxIAzCeYI6c3r7AQcmY jARMwYNCxJjz5nLctMe2MCs4LwKBgQDsatDXb3xr6jmflCUZa8Kx8SOgBWEZTEGz KEoCQWnF2fHUCy4Bwm8Imnws3iX0198TyxkVD2rP8oGwFj2SAVtI2L8Y/g5A05TA knfmVECvGp/MN266ZdCA8G/MKbk727TxyJs+4AseAi5p6cBULqZHsJaZE74qlcEl 5gFQu35ZawKBgBBgRz9J2zoZmLyvMm48ANpVzZNkVOdxxeYMigv2AsVZHCDk2oPs mfoOkqHVmxTPjPExKGZEmr54V+hNyc0dqpD0ci5WvTPnQ/JvtektqfuSjrdB9ZLV YCtRhV8hPQ+YMaxMA2oankAXdh35nv44NybhYMoSTXj+NMHX13QXbytjAoGAdVKw 3yixWzB6dinjm1Dx5rJfVos024QPWqRUzfe+UPROYUdHBpKB3YgktXNs7KuwRbdV dDEZdabIGyV+WpWXwnflpbZ2Rk95k3NcUw5ep0cUJBkiNxhNt58aK/xMs1rd2dsO x84RVkwI0oCw9FXOKOeGZOL6TVHR70fMQU86bY8CgYEAqg/1AD9lXzbR57zaR/br AIn0WWU2mnU7Dc4uhmQd9+JExqrplKKHrUp8eQEOW8nij6MbPYlpgkMdatvDOJqP WrYtwZsKXGhnalvbS3ye20HqpjYpBR7co3Q9KMaaDNoQe9HtjbT80GXpQEbJN2Iu ADo3hPoX0yENIbKFccMuptM= -----END PRIVATE KEY----- </key> #cert sample-keys/client.crt <cert> Certificate: Data: Version: 3 (0x2) Serial Number: 2 (0x2) Signature Algorithm: sha256WithRSAEncryption Issuer: C=KG, ST=NA, L=BISHKEK, O=OpenVPN-TEST/emailAddress=me@myhost.mydomain Validity Not Before: Nov 7 12:23:39 2023 GMT Not After : Nov 4 12:23:39 2033 GMT Subject: C=KG, ST=NA, O=OpenVPN-TEST, CN=Test-Client/emailAddress=me@myhost.mydomain Subject Public Key Info: Public Key Algorithm: rsaEncryption Public-Key: (2048 bit) Modulus: 00:dd:ae:b2:0a:40:e6:cf:e1:c1:a2:a1:d2:83:2c: 31:98:e2:1b:b2:85:40:67:00:fa:ab:bf:cf:9d:14: d1:c6:b7:63:83:aa:5f:9c:14:a0:d2:4d:04:3a:4a: 92:e6:92:4b:a4:86:40:26:42:bd:83:b7:fc:49:b7: 56:d2:ca:e7:70:85:16:8f:8b:3b:da:47:9e:8b:6a: 4a:c8:e6:a8:de:ae:6b:2d:52:22:0c:9d:cf:67:bb: 7d:1e:66:05:53:8b:7c:ae:ad:d1:a6:52:5f:3d:9e: 6b:28:18:57:d9:a1:42:2d:c0:b0:4d:da:4a:f0:29: aa:02:34:86:02:aa:af:67:09:06:ed:45:21:8e:8c: f8:75:56:c7:ea:e8:4f:88:8e:1c:8b:5b:68:2d:b1: 66:a5:e4:c6:36:e2:70:8d:fe:ef:10:f0:52:f8:53: 96:bf:7e:51:70:f2:3f:ae:58:87:38:d1:a3:6b:f6: 38:51:9b:16:ce:67:35:8e:6d:76:63:4d:6b:9b:7d: 77:da:55:6f:20:b1:66:4f:9a:2d:a4:73:3a:52:21: 86:3c:f3:a6:5a:67:e5:7d:10:f5:36:56:21:7e:03: 22:bd:98:e9:18:b4:3f:b3:b5:0d:ed:d5:ef:54:96: 6f:9d:46:6c:6f:0e:ba:4b:1a:f7:cc:d4:e5:24:ba: d2:a5 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Basic Constraints: CA:FALSE X509v3 Subject Key Identifier: 59:33:B9:2E:63:D1:17:A8:9F:BD:D8:CE:94:21:C5:41:C7:31:62:5D X509v3 Authority Key Identifier: keyid:73:B1:B8:D6:8A:95:6B:12:E0:74:7C:C5:57:55:98:94:5B:AC:78:5E DirName:/C=KG/ST=NA/L=BISHKEK/O=OpenVPN-TEST/emailAddress=me@myhost.mydomain serial:6F:50:B8:D3:46:6E:72:34:59:BC:00:33:DD:7C:AE:12:EB:27:46:06 Signature Algorithm: sha256WithRSAEncryption Signature Value: 2a:9e:02:65:f4:3c:c0:37:88:f0:21:f9:fd:2e:7c:f4:8b:bb: 67:7d:f7:48:0c:98:f7:a1:46:4e:33:af:68:77:f4:53:03:09: fd:4e:32:cb:0f:2c:f1:16:37:35:65:aa:68:79:16:a9:32:03: d7:89:10:ef:ba:fd:e1:26:2c:60:7c:3b:42:60:68:47:cf:61: 88:00:77:e7:71:76:49:78:35:52:45:a4:31:7e:2b:e1:0a:c8: ed:e1:a7:28:2f:23:a3:ce:ce:b5:99:6b:54:4d:df:d2:64:0a: b7:c5:25:1e:d4:f7:a1:fd:4f:f3:12:d3:26:5f:3b:b2:93:93: d1:8b:4b:4e:dc:d0:15:63:d1:77:36:75:34:76:37:59:ff:a0: 81:01:ec:b6:42:2f:bd:85:5d:d0:ef:ff:90:61:d6:91:b0:f5: e6:94:66:7e:4c:20:06:c4:2e:0c:9b:9f:7f:89:f0:3e:8f:e5: 06:6c:81:75:a2:0b:c5:ac:44:f1:32:cc:57:90:a0:19:47:8c: 25:7a:d5:f1:61:1f:19:bf:4c:31:da:44:c1:30:91:e8:b5:cc: e4:7e:20:55:0a:b9:dc:f3:5e:f5:7c:d1:0b:ee:71:c6:d6:38: 7e:85:7b:6c:cb:10:85:1e:6a:50:ab:c3:ae:f9:ff:96:4f:a3: 76:d6:fd:c0:f9:c7:9a:60:a8:8c:e5:9a:c5:a9:7b:63:11:ef: 7b:b9:9b:1f:63:51:a8:6d:2b:d6:f7:ef:51:bd:a8:32:9e:92: aa:24:01:c9:e3:6a:c8:94:2e:d2:66:b2:c7:17:e5:06:53:9a: bd:8a:19:8f:3a:51:7a:25:11:e5:e8:59:f7:1b:df:95:98:35: c1:a6:74:15:6b:b1:2c:97:9b:fe:76:7e:56:20:4d:ee:07:8a: b9:8b:bc:92:a9:19:81:28:91:4e:d2:9f:51:99:72:c0:12:76: 5b:c8:74:68:b5:9d:43:53:c1:af:39:b9:28:82:a0:0e:bb:ef: 21:d8:71:dd:02:af:dc:df:48:7b:39:21:7d:83:76:ea:e2:c7: 16:bb:d2:1a:1d:22:f6:4b:47:15:56:41:06:4d:39:1c:96:3f: 25:2d:83:8f:a4:a2:86:fa:0e:e9:45:9c:bf:26:40:e6:3e:9e: d5:00:9f:ce:76:6f:df:cb:b2:85:b8:83:f2:ed:8b:b6:5a:68: b5:c7:1b:ab:19:75:60:f3:5b:e7:5c:70:27:d9:1c:d8:24:f0: 2a:aa:2a:a6:98:77:d6:36:d9:02:35:a8:d3:2c:19:88:b8:0b: d3:76:58:72:54:99:94:9a:ee:38:9b:8d:8e:10:48:cd:28:50: 31:b2:4b:d3:69:7b:91:b4 -----BEGIN CERTIFICATE----- MIIFHzCCAwegAwIBAgIBAjANBgkqhkiG9w0BAQsFADBmMQswCQYDVQQGEwJLRzEL MAkGA1UECAwCTkExEDAOBgNVBAcMB0JJU0hLRUsxFTATBgNVBAoMDE9wZW5WUE4t VEVTVDEhMB8GCSqGSIb3DQEJARYSbWVAbXlob3N0Lm15ZG9tYWluMB4XDTIzMTEw NzEyMjMzOVoXDTMzMTEwNDEyMjMzOVowajELMAkGA1UEBhMCS0cxCzAJBgNVBAgM Ak5BMRUwEwYDVQQKDAxPcGVuVlBOLVRFU1QxFDASBgNVBAMMC1Rlc3QtQ2xpZW50 MSEwHwYJKoZIhvcNAQkBFhJtZUBteWhvc3QubXlkb21haW4wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDdrrIKQObP4cGiodKDLDGY4huyhUBnAPqrv8+d FNHGt2ODql+cFKDSTQQ6SpLmkkukhkAmQr2Dt/xJt1bSyudwhRaPizvaR56LakrI 5qjermstUiIMnc9nu30eZgVTi3yurdGmUl89nmsoGFf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cVVkEGTTkclj8lLYOPpKKG+g7pRZy/JkDmPp7VAJ/Odm/fy7KFuIPy 7Yu2Wmi1xxurGXVg81vnXHAn2RzYJPAqqiqmmHfWNtkCNajTLBmIuAvTdlhyVJmU mu44m42OEEjNKFAxskvTaXuRtA== -----END CERTIFICATE----- </cert> #tls-auth sample-keys/ta.key 1 key-direction 1 <tls-auth> # # 2048 bit OpenVPN static key # -----BEGIN OpenVPN Static key V1----- 21d94830510107f8753d3b6f3145e01d ed37075115afcb0538ecdd8503ee9663 7218c9ed38d908d594231d7d143c73da 5055310f89d336da99c8b3dcb18909c7 9dd44f540670ebc0f120beb7211e9683 9cb542572c48bfa7ffaa9a22cb8304b7 869b92f4442918e598745bb78ac8877f 02b00a7cdef3f2446c130d39a7c45126 9ef399fd6029cdfc80a7c604041312ab 0a969bc906bdee6e6d707afdcbe8c7fb 97beb66049c3d328340775025433ceba 1e38008a826cf92443d903106199373b dadd9c2c735cf481e580db4e81b99f12 e3f46b6159c687cd1b9e689f7712573c 0f02735a45573dfb5cd55cf464942389 2c7e91f439bdd7337a8ceebd302cfbfa -----END OpenVPN Static key V1----- </tls-auth> cipher AES-256-GCM ping 1 inactive 120 10000000