How to create a single ovpn file
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 2
- Joined: Mon May 17, 2021 2:51 am
How to create a single ovpn file
Hello. I am new in openvpn and I am trying to create a single file .ovpn to send to my clients. I've succesfully created a mikrotik certificates ca and cert and key and put all together in a single ovpn file. My question is. Can I add the username and password in the same file so that my clients only need to import the ovpn file and no need to use a file with auth-user-pass extra-file or the openvpn don't ask for the username and password? Is there an option I can use like the <ca> for the certificate to add the username and password in the ovpn file?
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVPN User
- Posts: 24
- Joined: Mon Jan 04, 2021 2:26 am
Re: How to create a single ovpn file
I think what you want is a simple point-to-point tunnel.
If you are sure that your openvpn server will only have one client, you can do so even without ca.
However I suggest you should set up basic password authentication, which could be stored in config of the client.
If you are sure that your openvpn server will only have one client, you can do so even without ca.
However I suggest you should set up basic password authentication, which could be stored in config of the client.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVPN User
- Posts: 24
- Joined: Mon Jan 04, 2021 2:26 am
Re: How to create a single ovpn file
Sorry, but I stored it in another file in the same directory with the config fileTinCanTech wrote: ↑Thu May 20, 2021 11:21 amThe username and password cannot be stored in the config file
Code: Select all
auth-user-pass password.txt
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: How to create a single ovpn file
Yes, that is acceptable.
However, the point of a password is to ensure a human is typing it in not having it automated.
However, the point of a password is to ensure a human is typing it in not having it automated.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Mon May 17, 2021 2:51 am
Re: How to create a single ovpn file
Thanks for the help, so I understand that there is no way to put the username and password inside the ovpn file. I understand the point of security, in this case unfortunately the people who want to use are "important" in my work and they don't want extra stepts to connect their computers. However I think I will make a manual to import the file and make everyone to use a username and password.