-
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
EasyRSA on win server 22? Suddenly having lots of trouble. #881
Comments
@Nephilimi hello. I'll have to deal with this in parts.
Good luck.
Here you are using EasyRSA It looks like you entered the wrong password for your CA. See:
The version of easyRSA in use is known to have issues. I don't know exactly what is wrong at your site ..
Moving forward: Copy the Easy-RSA folder to your user folder and try it from there. You could also try the There is also an experimental version of |
Thank you again @TinCanTech Point 1; After getting the "real" administrator CMD prompt it worked under 2.6.0. Windows was the entire problem here. Point 2; I thought so too but I'm pasting it into CLI from our vault. It's just a bad error message, real problem is no admin access, I assume to files on disk? It might be nice to make that more clear. Point 3; good tip. Point 4; I'm aware of the time frame. I wasn't aware of the windows issue, but I assume they will fix it before then. 60+ other win 2016, 2019, and now one 2022 server appear fine with this. I also know I can revoke one of these certs, update CRL and that client can't connect any more. All seems working as designed here. Forward; As it was a permission issue that would have fixed it too. Only problem is I didn't realize what "select administrator" is because I've never seen it before. All I know is it isn't a group or user in windows, this is some windows 11 protect you from yourself garbage that has trickled down to server. |
@Nephilimi sounds like you have things under control now 👍 FYI: The Windblows itself is fine date-wise, although, I understand your pain for the rest. Thank you for persevering with EasyRSA and letting us know that you got it working. If you have any more issues with |
EDIT; I am so annoyed with Redmond's activism in windows.
First experience with win server 2022.
Hit windows key and type cmd. Nothing found. Delete it and repeat & there it is. Win search issue, not first time it not work on new VM. Continue on with something else, need cmd again, same problem but notice a advert for powershell this time, cute but that's not what I want. Go for three times in a row and again cmd missing first time. This is deliberate behavior? I’m getting more and more PO with Redmond every update. I thought I was safe on server but clearly not.
But wait It gets better; select administrator.
Type cmd a couple times to finally get it, right click to run as admin and don't notice "select administrator" in title bar. All my EasyRSA commands are failing. Spend a a our or so investigating including reverting versions because 2.6.0 is new and posting to GIT.
Open a couple more cmd prompts same way I just did before and they aren't "select". Suddenly EasyRSA works...
WTF is this random select administrator bullshit?
-------------original post---------------
Before you read any further is the EasyRSA bundled in OpenVPN 2.6.0, 2.5.8, or 2.5.7 supposed to work on Win server 2022 21H2?? I'm at a complete roadblock. Used 2.5.7 and I think 2.5.8 on many 2019 servers no issue. I've even upgraded some to OpenVPN 2.6.0 but the upgrade doesn't involve my doing anything in EasyRSA. Admin command prompt for all the below.
--------------vars bat location issue?------------------
Previously I was putting my vars.bat in [u]C:\Program Files\OpenVPN\easy-rsa[/u], note this is where the vars.example file is. But that now throws note;
Order of operations question here;
If I move vars.bat to the "right" location and start the process over with init-pki that of course blows away the vars.bat I just put in there? Best advice for this would be just to ignore that note? It needs to be in place as you launch start.bat for the environment variables right?
-----------It gets worse--------------
I can't get my server keys built at all with the vars.bat in either location. I'm copying and pasting my CA passphrase so it can't be wrong, certainly not three attempts in a row. Admin CMD prompt for this, I don't see file access errors.
So now I revert to 2.5.8. Different errors and I don't get very far.
So now I revert to 2.5.7 and I KNOW I've used that version on other servers. Same error as above. I even tried with a CA Secret I used on another server because maybe one of the characters isn't being escaped on CLI? Didn't change anything.
The text was updated successfully, but these errors were encountered: