I've sucessfully created a couple of OpenVPN tunnels and I'm trying to move the project forward and use it in the real world. However, no matter how much I seem to search, I can't find any reference to how to create additional keys for the OpenVPN system.
I've seen a method of revoking keys, but can anyone tell me how to create new ones?
I've tried working it out myself, but I'm getting an error. I'm using Windows based systems, and this is where I've got to:
1. At a command prompt, I've navigated to C:\program files\openvpn\easy-rsa
2. Run the batch file 'vars.bat'
3. Run the command 'build-key newuser1'
The system rthen returns the following error:
'openssl' is not recognized as an internal or external command,
operable program or batch file.
'openssl' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Program Files\OpenVPN\easy-rsa\key
s\*.old
There is a file within this directory called openssl.cnf but i'm not sure that this is what the batch file is trying to address. The build-key batch file looks like this:
@echo off
cd %HOME%
rem build a request for a cert that will be valid for ten years
openssl req -days 3650 -nodes -new -keyout %KEY_DIR%\%1.key -out %KEY_DIR%\%1.csr -config %KEY_CONFIG%
rem sign the cert request with our ca, creating a cert/key pair
openssl ca -days 3650 -out %KEY_DIR%\%1.crt -in %KEY_DIR%\%1.csr -config %KEY_CONFIG%
rem delete any .old files created in this process, to avoid future file creation errors
del /q %KEY_DIR%\*.old
Any ideas? Am I barking up the wrong tree?
Start Free Trial