S
S
Stepan2022-03-21 13:29:29
openvpn
Stepan, 2022-03-21 13:29:29

Error creating OpenVPN profile, what should I do?

Hello. I registered a VPS server on skyhost.ru, based on CentOS 8 x86_64. When I make an .ovpn file and try to import it on an iPhone. the error gets out
6238530b75bef735384735.jpeg
I saw something similar on the given resource, but did not understand how to overcome it. I'll post a link to a similar question in a comment.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2022-03-21
@Drno

Incorrectly or with an error, server and client keys were added to the ovpn file.
This is the long part
. For iPhones, it should be like this (of course, change the key to your own)

# Keys
<ca>
-----BEGIN CERTIFICATE-----
MIIDUTCCAjmgAwIBAgIUX7Swy10G81wnVChzkjmR/MZrfRwwDQYJKoZIhvcNAQEL
BQAwGDEWMBQGA1UEAwwNQW50aVphcHJldCBDQTAeFw0yMjAzMDUxMjIyMDhaFw0z
grLmM5SaQvnwMEt35U/pzaj+rRwbgZKkTBebjJHNNXn0y8/IwmmFlgjrtl61zFh8
9Pc472Aqv74IqODWANsq756JiHxKKrLr+/M2ZvFQS/6DY3o/4H3CQxPoXGOReKLO
YgMGmbcelY0E+9aVdKBVL6v6HlRTJzZISLSD+Zo5C1aGkI1Xm22DvVADhcaK7+wE
6e6P2YZRKp65AAFk2Vs7zbxYxVHnLRkhvDPeyO09Mo3pCqt9PRoKbk4fF63idiNo
xpxCVT497+rArE/VjGIu/Nvc6ackfwePce3OS/MoUj8Y6zCuPMDpAgMBAAGjgZIw
gY8wHQYDVR0OBBYEFFxNui1HNN3C3Sgg/IzuHNMNk+pPMFMGA1UdIwRMMEqAFFxN
ui1HNN3C3Sgg/IzuHNMNk+pPoRykGjAYMRYwFAYDVQQDDA1BbnRpWmFwcmV0IENB
ghRftLDLXQbzXCdUKHOSOZH8xmt9HDAMBgNVHRMEBTADAQH/MAsGA1UdDwQEAwIB
BjANBgkqhkiG9w0BAQsFAAOCAQEAOj/cyK4rs5b+FfSxxIoaQAJf+gbGtHjPvy0R
wpwGc8Yt8Iq8MEmnAg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adJjMWoxsH8YNxoDhDgziUym6PGK9XE
+Oy8GqQkGBsTSM8qJqNy97HuyAQfFQPrk1GqMiLdgQKBgQDynoqc2f483g2GDi+2
1G1npjNDoruY//DmhYYT69a+Fe5GwgpgNGxprHMQvMPr+MgDCqXjvlVOQLG2t5NO
Zd8m0rIKmvLgHEN/AamByiHtLa1mJ2epbbJjikqDeYUqSTykHG1FIIIJ+47mbdmd
AwVmzDQqa3iEH1etV3Q1swrLMQKBgQDsrStfqAmrpehHetp/pXQ7l/hzr246JjIN
EVAh175yVt9P9xuC+4sUHNvpjxH9WF/Tg0VudKvz+tsOQnSStu/yh2X92f0+OsG4
Vy5eORGTRQY1odL4kPm3X4Zew8iuHtR8CiJ+uuL/aJ6OTUCDJx7cdY8CziUAK0NJ
OO5vkf4LAwKBgDirp5zznlsBUw9ZCPQfsl5fh+HohQE75z0xOxw0HjjQTpPghyPp
mtkkGsxyCyF3PuDW/+CueKaKnfgb8SCC0xjyZfvsLYcDkxB7huh2Gm6YGMSft6rv
jywG2Ss6Dq3gX3BoRtdtC6eYoLI3UpRsoQjq6rfUso6wO2yg7HPoZqEE64fE2ynV
SMCjMgqT0tlpYcAn5nQJ6EQlWFnc6SCD1+21sE0CgYEA6Wzml3ekeCN5huRXhn6i
Xqk4HU71ocn3wTPJeL0hK5RoFNmRa4EGIM2tVGiVqs2sufFidcBXfWHwEwQZARi5
ASX3UwAi+9NWiUnfn0847hVpvdQzZNl2LzKZXKOAw1q8P3debsSZjh11oldldFLx
PqbxlA+SmSxY1ZTheBWFeV8=
-----END PRIVATE KEY-----
</key>

V
Vladimir Yurchenkov, 2022-03-21
@EPIDEMIASH

Неважно какое устройство. Правильно сделайте файл .ovpn и будет счастье.
Сначала идут параметры, типо:

client
dev tun
proto tcp
remote ip port
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3

Потом
<ca>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----

-----END PRIVATE KEY-----
</key>
<tls-crypt>
-----BEGIN OpenVPN Static key V1-----

-----END OpenVPN Static key V1-----
</tls-crypt>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question