Page 1 of 1
Client key won't copy
Posted: Thu Jan 10, 2013 1:22 pm
by mcquam
I have set up the server on Ubuntu 12.10 and it runs ok. I have successfully set up the client on Windows 7 too.
I have created the client keys and the .crt .csr and .key files have been created. However when I try to copy the files over to the client i get a permission denied error in my ftp client.
I tried to change the permissions using sudo su but it wouldn't let me.
Re: Client key won't copy
Posted: Sat Jan 12, 2013 8:03 am
by maikcat
hi there,
when I try to copy the files over to the client i get a permission denied error in my ftp client.
which files? the keys?what OS is your client?are you using ftp for file trasnfer?
with so little info provided i cant help you.....
Michael.
Re: Client key won't copy
Posted: Sat Jan 12, 2013 8:21 am
by mcquam
Thanks
The file is the client.key file. The OS is Windows 7. I am using ftp using Filezilla.
Re: Client key won't copy
Posted: Sat Jan 12, 2013 11:13 am
by maikcat
The file is the client.key file. The OS is Windows 7. I am using ftp using Filezilla.
not enough info....
you are trying to copy using filezilla FROM linux to the windows?
where in windows you are trying to copy the file?
do you have permissions to write the file in the selected folder?
btw this has nothing to do with openvpn itself...
Michael.
Re: Client key won't copy
Posted: Sat Jan 12, 2013 5:21 pm
by mcquam
Thank you for bearing with me.
I have followed various tutorials on how to install and config and I have not seen anything about permissions.
I have an Openvpn server set up with certificates etc on Ubuntu 12.10. I have installed the client software on Windows 7. Both run.
However, when I create the client.key, client.crt and ca.crt they all copy to the client using Filezilla apart from the .key file.
Everything else has worked fine (I have still to test the ovpn file) and it is just this file that won't copy.
Re: Client key won't copy
Posted: Sun Jan 13, 2013 8:56 am
by maikcat
hi there,
keep in mind that .key files in linux are created with 600 permissions,
means that they get rw------- and they belong to root...
when connecting with ftp ,what account are you using?
also you can simply pack them using tar and copy the tarball....
Michael.
Re: Client key won't copy
Posted: Mon Jan 14, 2013 12:45 pm
by mcquam
Thanks for your help. I changed the permissions and it's now working.
Sounds obvious but I didn't think I would need to do anything with permissions.
Re: Client key won't copy
Posted: Tue Jan 29, 2013 6:17 am
by shar0119
How did you create the client.key and client.crt on a Linux machine? What was the command?
I am trying to get a hold of client.key/client.crt for each user and move it across to a new server.
Re: Client key won't copy
Posted: Tue Jan 29, 2013 6:43 am
by mcquam
I followed the method shown here:
http://openvpn.net/index.php/open-sourc ... ml#install
./build-key client1
./build-key client2
./build-key client3