enter an OpenVPN file manually

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Samirovic
OpenVpn Newbie
Posts: 7
Joined: Mon Apr 11, 2022 7:15 am

enter an OpenVPN file manually

Post by Samirovic » Tue May 17, 2022 10:34 am

I allow myself to write to you because I would like to load an OpenVPN file on a router but there is no way or location to load the file directly.
so I will have to fill in the file parameters manually.

I am blocked at the level of the certificates because I have to import 6 files on the router which are:
-CA -Public Key -Private Key -TA -Preshared Key -PKCS12

The problem I don't know how I'm going to get them out of the ovpn file

here is my OpenVPN file:
dev tun
persist-tun
persist-key
cipher AES-128-CBC
auth SHA256
client
resolv-retry infinite
remote 185.60.151.17 443 udp
lport 0
verify-x509-name "xxxxx" subject
remote-cert-tls server
auth-user-pass
comp-lzo adaptive
<ca>
-----BEGIN CERTIFICATE-----
MIIEJjCCAw6gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCRlIx
FjAUBgNVBAgMDUlsZSBkZSBGcmFuY2UxDjAMBgNVBAcMBVBhcmlzMREwDwYDVQQK
DAhHZW5lcnN5czEvMC0GCSqGSIb3DQEJARYgc3VwcG9ydCtnZW5lcnN5c0BhZ29y
YWNhbHljZS5jb20xFDASBgNVBAMMC2ludGVybmFsLWNhMB4XDTIwMTEyNTA3MjIz
MVoXDTIzMDIyODA3MjIzMVowgY8xCzAJBgNVBAYTAkZSMRYwFAYDVQQIDA1JbGUg
T1BOc2Vuc2UgR2VuZXJhdGVkIENlcnRpZmljYXRlIEF1dGhvcml0eTAdBgNVHQ4E
FgQUT92z2PeZX3KquZOxHaD8LfhogXswHwYDVR0jBBgwFoAUT92z2PeZX3KquZOx
HaD8LfhogXswDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEApcB8DzKb
/QJie609KI/LCn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LUtG
G0ySyrgo9wu/pDdwcSATWxGZLt5X9DkwVVXxRmd7SoC6hb+c7d7Cx/RazrkCgYEA
i8Z18Lx1I81NCAY5UtPxrXH3EKPRuD1AfNSo9yCINCn8yNtfZjfmv4M5jMTEXcd5
TGGjE4WitYU5vTv27DWCb6eRpmws7Ky/0O+d3KgIRV/LqtJ/47KD3O+Tzguns0o+
me6dLgyYP/IL6r+xnlOffuOFedTxkPuiGo7bfoB+JQkCgYAwPoCo+ca2u9oEuCEp
0RRlQiJ1Ns5qv/DxOalk8LKbDadwguM2WDRErh1D/zMp8ku5wLQVWIDarqKDn4nl
INVjRcGAS9ex8kGuHRvXH9ZnzrYWK3Sr4YYV/QgUMqvdoJt6hZM0D33xA1Ky/dj0
5XQ9+EjdMKu/i2rputCkQMrARA==
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
787b73db278ceb8482f4ebd50f592aa7
768cc1c94edc2b1b7db0b6e9fc1650e2
fe82c80e8bc261841655cb5d40359c13
d5fcf805df4ca20869ba6225f4eea9a1
c3623ea00796fa2aa11bd2a53ed093d5
dd4f89f058ba983df73ac4a0702cc585
446022d22523adc3b3fc2c1457cfbcb0
126c402386f1a326829809296ae47fb2
6685bef3e97e8377c68eb74c0504f6c5
b4131d802af898fda266e18aeb0c65dc
9d877529e0f0143da8be4fdd1b16c782
-----END OpenVPN Static key V1-----
</tls-auth>
key-direction 1
you can help me please.

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

Re: enter an OpenVPN file manually

Post by TinCanTech » Tue May 17, 2022 12:20 pm

Samirovic wrote:
Tue May 17, 2022 10:34 am
remote 185.60.151.17 443 udp
Who does the server belong to ?

Samirovic
OpenVpn Newbie
Posts: 7
Joined: Mon Apr 11, 2022 7:15 am

Re: enter an OpenVPN file manually

Post by Samirovic » Tue May 17, 2022 12:42 pm

TinCanTech wrote:
Tue May 17, 2022 12:20 pm
Samirovic wrote:
Tue May 17, 2022 10:34 am
remote 185.60.151.17 443 udp
Who does the server belong to ?
it belongs to a virtual machine in the cloud

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

Re: enter an OpenVPN file manually

Post by TinCanTech » Tue May 17, 2022 1:02 pm

Do virtual machines in the cloud have ownership status now .. is it trans as well ?

Samirovic
OpenVpn Newbie
Posts: 7
Joined: Mon Apr 11, 2022 7:15 am

Re: enter an OpenVPN file manually

Post by Samirovic » Tue May 17, 2022 1:13 pm

TinCanTech wrote:
Tue May 17, 2022 1:02 pm
Do virtual machines in the cloud have ownership status now .. is it trans as well ?
Yes that's it

Stephanie_Sy
OpenVPN User
Posts: 20
Joined: Mon May 31, 2021 4:51 pm

Re: enter an OpenVPN file manually

Post by Stephanie_Sy » Wed May 18, 2022 1:48 am

Were you able to figure this out? I'm running into the EXACT same issue.

Samirovic
OpenVpn Newbie
Posts: 7
Joined: Mon Apr 11, 2022 7:15 am

Re: enter an OpenVPN file manually

Post by Samirovic » Wed May 18, 2022 7:10 am

Samirovic wrote:
Tue May 17, 2022 1:13 pm
TinCanTech wrote:
Tue May 17, 2022 1:02 pm
Do virtual machines in the cloud have ownership status now .. is it trans as well ?
Yes that's it
can you help me find a solution?

Samirovic
OpenVpn Newbie
Posts: 7
Joined: Mon Apr 11, 2022 7:15 am

Re: enter an OpenVPN file manually

Post by Samirovic » Wed May 18, 2022 8:42 am

Stephanie_Sy wrote:
Wed May 18, 2022 1:48 am
Were you able to figure this out? I'm running into the EXACT same issue.
I did not find a solution for this

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

Re: enter an OpenVPN file manually

Post by TinCanTech » Wed May 18, 2022 8:53 am

Stephanie_Sy wrote:
Wed May 18, 2022 1:48 am
Were you able to figure this out? I'm running into the EXACT same issue.
What issue is that then ?

antioch
OpenVpn Newbie
Posts: 9
Joined: Fri Sep 10, 2021 7:17 pm

Re: enter an OpenVPN file manually

Post by antioch » Sun May 22, 2022 3:26 pm

Samirovic wrote:
Tue May 17, 2022 10:34 am
I am blocked at the level of the certificates because I have to import 6 files on the router which are:
-CA -Public Key -Private Key -TA -Preshared Key -PKCS12

The problem I don't know how I'm going to get them out of the ovpn file
seems to me that you only need four of the six items you list, and they are right there in plain text between the <ca>, <cert>, <key> and <tls-auth> tags.

also, as i understand it keys are private, certificates are public. meaning you had better regenerate those keys and the certificates derived from them now that the keys were exposed.

300000
OpenVPN Expert
Posts: 685
Joined: Tue May 01, 2012 9:30 pm

Re: enter an OpenVPN file manually

Post by 300000 » Sun May 29, 2022 9:32 am

Copy everything from first part of the certificate (include BEGIN CERTIFICATE line all the way to END CERTIFICATE line)
Paste to new file (use Notepad)
Save as CA.crt – Be sure to select All as file type
Close

Open new text file
Copy the info from below
use same directions as above for what to copy
Save this file as Certificate.crt

Do the same with TA key and save it . You only need 4 keys so upload all 4 key then it should connect .



Open new text file
Copy info from below
Same instructions as above
Save this file as ClientKey.key

Post Reply