Hi,
I am using windows x64. Following the steps in the
link: https://community.openvpn.net/openvpn/w ... nVPN-Howto
I encountered this error under the PKI procedure at step 5.
I have built the CA cert, server keypair and request, client keypair and request separately on the same machine and saved elsewhere separately before deleting (except for CA cert) after creating each one. I then downloaded the server keypair and request, client keypair and request back into the machine and tried too import each entity request file accordingly to step 5.
I used the command "easyasr import-req /path/to/received.req UNIQUE_SHORT_FILE_NAME" in EasyRSA-Start.ba" in the command line interface as an administrator in order to perform step 5. However, I received the error, "The input file does not appear to be a certificate request. Aborting import." I have also unblocked the files before the command
Does anybody know why the error occurred or can provide advice on what I should check for in order to fix the error? Please do also tell me if the procedure I followed above is not right.
Thanks.
Error: The input file does not appear to be a certificate request. Aborting import.
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 5
- Joined: Tue Jun 28, 2022 12:24 pm
-
- OpenVPN Protagonist
- Posts: 11138
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Error: The input file does not appear to be a certificate request. Aborting import.
The file has probably been corrupted by a copy operation.snwl wrote: ↑Tue Jun 28, 2022 12:42 pmI have built the CA cert, server keypair and request, client keypair and request separately on the same machine and saved elsewhere separately before deleting (except for CA cert) after creating each one. I then downloaded the server keypair and request, client keypair and request back into the machine and tried too import each entity request file accordingly to step 5.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Tue Jun 28, 2022 12:24 pm
Re: Error: The input file does not appear to be a certificate request. Aborting import.
Hi,
Just to confirm, I received the same error for both client and server request files. If the files have really been corrupted by a copy operation, may I ask if such a corruption is common and how I should save / move / copy the files to avoid the corruption.
Thanks.
Just to confirm, I received the same error for both client and server request files. If the files have really been corrupted by a copy operation, may I ask if such a corruption is common and how I should save / move / copy the files to avoid the corruption.
Thanks.
-
- OpenVPN Protagonist
- Posts: 11138
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Error: The input file does not appear to be a certificate request. Aborting import.
Maybe line endings: CRLF vs NL.
I suppose that you did use EasyRSA to generate the requests ?
I suppose that you did use EasyRSA to generate the requests ?
-
- OpenVpn Newbie
- Posts: 5
- Joined: Tue Jun 28, 2022 12:24 pm
-
- OpenVPN Protagonist
- Posts: 11138
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Error: The input file does not appear to be a certificate request. Aborting import.
If EasyRSA says that the .req is not a request fle then it has probably been corrupted.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Tue Jun 28, 2022 12:24 pm
Re: Error: The input file does not appear to be a certificate request. Aborting import.
Hi, I have realised why there is an error. It was the simple mistake of not enclosing the path in the command "easyasr import-req /path/to/received.req UNIQUE_SHORT_FILE_NAME" in quotation marks (" "). Thank you very much for the help.