Client key won't copy

Scripts to manage certificates or generate config files

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

Post Reply
mcquam
OpenVpn Newbie
Posts: 5
Joined: Thu Jan 10, 2013 1:18 pm

Client key won't copy

Post by mcquam » Thu Jan 10, 2013 1:22 pm

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.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Client key won't copy

Post by maikcat » Sat Jan 12, 2013 8:03 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

mcquam
OpenVpn Newbie
Posts: 5
Joined: Thu Jan 10, 2013 1:18 pm

Re: Client key won't copy

Post by mcquam » Sat Jan 12, 2013 8:21 am

Thanks

The file is the client.key file. The OS is Windows 7. I am using ftp using Filezilla.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Client key won't copy

Post by maikcat » Sat Jan 12, 2013 11:13 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

mcquam
OpenVpn Newbie
Posts: 5
Joined: Thu Jan 10, 2013 1:18 pm

Re: Client key won't copy

Post by mcquam » Sat Jan 12, 2013 5:21 pm

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.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Client key won't copy

Post by maikcat » Sun Jan 13, 2013 8:56 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

mcquam
OpenVpn Newbie
Posts: 5
Joined: Thu Jan 10, 2013 1:18 pm

Re: Client key won't copy

Post by mcquam » Mon Jan 14, 2013 12:45 pm

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.

shar0119
OpenVpn Newbie
Posts: 9
Joined: Sun Jan 27, 2013 6:40 am

Re: Client key won't copy

Post by shar0119 » Tue Jan 29, 2013 6:17 am

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.

mcquam
OpenVpn Newbie
Posts: 5
Joined: Thu Jan 10, 2013 1:18 pm

Re: Client key won't copy

Post by mcquam » Tue Jan 29, 2013 6:43 am

I followed the method shown here:
http://openvpn.net/index.php/open-sourc ... ml#install

./build-key client1
./build-key client2
./build-key client3

Post Reply