DD-WRT - How to locate the TLS Auth Static Key V1 in an OVPN file

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
sanderwaltter
OpenVpn Newbie
Posts: 1
Joined: Thu Jun 02, 2016 5:05 am

DD-WRT - How to locate the TLS Auth Static Key V1 in an OVPN file

Post by sanderwaltter » Thu Jun 02, 2016 5:20 am

Hi everyone,

I am not a computer expert or anything but after a number of google searches I have finally managed to run my own OpenVPN service using a VPS Debian Server. I am connecting to the VPS OpenVPN Service using the OpenVPN (client) console in PC and Tunnelbrick in Mac both with the help of the OVPN file that was generated out of the Debian OpenVPN server. Everything works perfectly!

Now, I'd like to connect my DD-WRT Router to my VPS OpenVPN Server so that I can have the Wi-Fi at home permanently connected via VPN. Again, I have just googled some tutorials to learn how to do it and this is the one that I found particularly easy to follow: https://www.astrill.com/knowledge-base/ ... uters.html

The tutorial asks me to extract 3 certificates + 1 key from my OVPN file however I cannot find the TLS-Auth Static Key V1 with the same format shown on the tutorial. My OVPN file contains only 2 certificates + 1 key.

I was wondering if someone here could perhaps enlighten me up on how to do it.

Here it is an extract of my OVPN file:
client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote 121.121.44.15 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
comp-lzo
verb 3
<ca>
-----BEGIN CERTIFICATE——HHhDJgjfdgCAhE2MDQxNjA1MjA1NVoXDTI2MDQxNDA1MjA1NVowEzER
MA8GA1UEAxM (…) continue (…) u7ES1z7CoUYF4H9ETgijJRWPrrmXoO
9YQmNOq0HxP3EDjqZfsGsdfSUsXtXh08NyvtUbORAEdj5n2c7xbjD2ZaAJY
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=ChangeMe
Validity
Not Before: Apr 16 05:21:27 2016 GMT
Not After : Apr 14 05:21:27 2026 GMT
Subject: CN=Untitled
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
00:h4:1d:ef:5c:e5:e6:c1:01:g0:a4:56:d8:79:6d:
ch:5n:65:ha:4g:fb:99:76:6b:b4:54:71:8a:c1:1d:
(…)continue(…)
54:4b:f6:3b:36:ce:0f:65:6a:9h:1h:a8:8c:oa:75:
10:13
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
X509v3 Subject Key Identifier:
4G:H8:C7:F8:J6:K5:C1:X5:FG:07:E1:J9:2K:5B:P5:63:64:9F:1A:AC
X509v3 Authority Key Identifier:
keyid:7H:6F:H3:FF:H1:51:7E:18:56:96:9C:3D:55:81:27:71:A8:8C:10:A9
DirName:/CN=ChangeMe
serial:B5:0J:06:76:H0:R3:Z5:75

X509v3 Extended Key Usage:
TLS Web Client Authentication
X509v3 Key Usage:
Digital Signature
Signature Algorithm: sha256WithRSAEncryption
79:15:bf:d1:28:5f:cb:0a:95:95:29:fb:48:98:4f:38:18:7a:
e9:10:9b:11:9d:03:4b:01:56:36:99:16:f1:3a:79:59:4e:4b:
(…)continue(…)
30:07:f1:9b:7a:a1:94:1a:75:0b:dc:ff:92:cc:45:0d:d5:1f:
70:13:0c:e5
-----BEGIN CERTIFICATE-----
MJFsdJFdkg33gmgll3gGn3GnDkqhkiG9w0BJsdfJfreojeJEJefJSSSaJADJAFahDaGFu
(…)continue(…)
Jfj2J2fj f/fjdsfSFJSF2f3FJSfjsFJsfJFsjsFSJjKLPOcwJWcHNMqJdjf3fFJsf34ffns31198
dsfnSFDnfsWeffjklsdf==
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
WJsdJf434fFJSfs4g901JKsKs991344JsfJSFJFS4ffsFSfAKOKpq3f09jsf9879yfgGdCk
(…)continue(…)
qCRc++Hy6GbFejtz8bBf2eMHPzKGgpUAGRqMY8kb5DV1+J5aedPRkLrHRnruP3zq
IeHSXDO7je/JjKmSKNMUCik=
-----END PRIVATE KEY-----
</key>

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: DD-WRT - How to locate the TLS Auth Static Key V1 in an OVPN file

Post by TinCanTech » Fri Jun 03, 2016 4:48 pm

You are not using a --tls-auth key file ..

Post Reply