iOS ask for Username and Password when importing profile

Post Reply
Dens
OpenVpn Newbie
Posts: 1
Joined: Fri Jan 24, 2020 1:32 pm

iOS ask for Username and Password when importing profile

Post by Dens » Fri Jan 24, 2020 1:50 pm

Hello.
I just installed OpenVPN on my AWS server, generated .ovpn file, and succesfully start OpenVPN client with this ovpn file on my Raspberry PI without any asks for username or password.
But when i try to import this .ovpn file to iphone through OpenVPN app by typing url, app asks me for username and password.
And i dont know what to type.
How to solve this?
--
ios 12.4
OpenVPN 2.4.4 x86_64-pc-linux-gnu

Server config

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt

push "redirect-gateway def1 bypass-dhcp"

push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"

keepalive 10 120

tls-auth ta.key 0 # This file is secret
key-direction 0

cipher AES-256-CBC
auth SHA256

persist-key
persist-tun

status /var/log/openvpn/openvpn-status.log

verb 3

;mute 20

explicit-exit-notify 1


Client config

client
dev tun
proto udp
remote 4.23.124.123 1194
resolv-retry infinite
nobind
;user nobody
;group nogroup
persist-key
persist-tun
remote-cert-tls server
tls-auth ta.key 1
cipher AES-256-CBC
auth SHA256
# Set log file verbosity.
verb 3

# Silence repeating messages
;mute 20

key-direction 1

# script-security 2
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf

...and key and certifikate section here...



P.S. From Windows 7 this ovpn file also works without any username and password.

Cheers
Denis
Last edited by Pippin on Fri Jan 24, 2020 7:17 pm, edited 1 time in total.
Reason: Formatting

Post Reply