-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows server permissions issue. #907
Comments
Reading your forum post as well:
To work around that, Open an Administrator command prompt and change directory I'm not sure about the problem with |
I notice in your
Windows I'll have to test this myself. Tested and working fine for both CA and certificates with end date in 2043. I don't think you need to bother with Additionally: If you would like to try Direct link: You should be able to unzip |
I believe you are on the correct track with the unquoted space somewhere. I can move it to C:\Temp and it works. What is confusing to me is the server editions I'm experiencing this on vs the win 10 pro it works fine on. Next opportunity I will try \Progra~1\openvpn\easy-rsa. I haven't nailed down the entire thing consistently yet. We've been over the date question a couple times in the past, but I'm thinking that would throw very different errors? |
I updated my comment above; |
FTR: Because you are using a password for your CA, Use a path without any spaces and it should work fine. I recommend that you use a user account to build your PKI with. Copy EasyRSA from the That way, at least, your CA key is not world readable, it can only be seen by your user or an admin account. |
@Nephilimi - Closing this as completed. Please re-open, if necessary. Thank you for your feedback. |
OK, doing this again today on another server using OpenVPN-2.6.3-I001-amd64 and I got the same problem in Program Files. I moved it to C:\temp and still got the same problem. Moved it to my desktop in C:\temp and installed above openvpn version on this computer so openssl tools are here and in path and I'm still getting the same problem.
|
Same problem in busybox |
I believe I fixed the problem. For the record what special characters do I need to avoid in the CA passphrase? I've been using a password generator and it throws that stuff in there and I've been simply copy/pasting from it. On a hunch I stripped out all the specials and left only upper, lower, and numbers and now it is working as expected. It's interesting it will allow creating the CA with this oddball passphrase, but not allow it to sign. The error message thrown is also quite misleading. |
I cannot help with your password generator, however, here is an idea. Use EasyRSA options EG: Replace |
Another good idea, thank you. |
I appear to be having file system permissions issues while working with EasyRSA on some windows server edition systems but I'm not quite putting the pieces together. Using the EasyRSA bundled in OpenVPN 2.6.0. I'm an administrator, using administrator cmd prompt, and I'm seeing the file system for EasyRSA folder has full control for administrators. win server 2019 ver 1809
Reference; https://forums.openvpn.net/viewtopic.php?p=110773#p110773
These are the commands I'm trying to run and the locations I'm encountering problems at;
easyrsa init-pki
easyrsa build-ca
SAVE the ca passphrase you make up in LastPass!!
easyrsa build-server-full server nopass #original issue fails here, discussion link above. Could not read CA private key from C:/Program Files/OpenVPN/easy-rsa/pki/private/ca.key
easyrsa build-client-full client1 nopass
easyrsa build-client-full client2 nopass
easyrsa build-client-full client3 nopass
easyrsa build-client-full client4 nopass
easyrsa build-client-full client5 nopass
easyrsa build-client-full client6 nopass
easyrsa gen-dh
Should not take that long with a 2048 bit dh
cd pki
openvpn --genkey secret ta.key #if I copy EasyRSA folder to C:\Temp\easy-rsa; everything works fine and I can get through the entire procedure. ALSO if I do all the above on my windows 10 desktop everything works.
The text was updated successfully, but these errors were encountered: