easy-tls
easy-tls copied to clipboard
Recover from missing inline file
I manually deleted an inline file from the pki folder. Now I can't get rid of the error message or seemingly generate any new inline file. How do I resolve this?
Hi, can you please post the error message that you are seeing.
./easytls ita external 0
Easy-TLS 2.7.0.0.0 OpenVPN 2.5.7 OpenSSL 1.1.1o 3 May 2022 Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline
./easytls ri external
Easy-TLS 2.7.0.0.0 OpenVPN 2.5.7 OpenSSL 1.1.1o 3 May 2022 Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline
./easytls inline-index-rebuild
Easy-TLS 2.7.0.0.0 OpenVPN 2.5.7 OpenSSL 1.1.1o 3 May 2022 Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline
./easytls s
Easy-TLS 2.7.0.0.0 OpenVPN 2.5.7 OpenSSL 1.1.1o 3 May 2022 Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline
Please try with current version 2.8.0
Please make sure you backup what you currently have.
The new version will re-index correctly and should allow you to continue.
The command you need with the new version is easytls rehash
That is shown as being 2.7.0 which is what I have.
./easytls rehash Easy-TLS 2.7.0.0 OpenVPN 2.5.7 OpenSSL 1.1.1o 3 May 2022 Error: Missing file: C:/Progra~1/OpenVPN/Easy-RSA/pki/easytls/external.inline
You require this: https://github.com/TinCanTech/easy-tls/blob/81b1c299a56b52926e44a725d0e59753dfe2aa61/easytls#L9293
See the link above.
OK tried that and got
./easytls rehash
Rehash completed successfully. Error log: Error: Missing file: C:/Program Files/OpenVPN/Easy-RSA/pki/easytls/external.inline Easy-TLS 2.8.0 (0) EasyRSA Shell
Hopefully, you can now use easytls remove-inline external, please try.
./easytls ri external
Error log: Error: Missing file: C:/Program Files/OpenVPN/Easy-RSA/pki/easytls/external.inline Easy-TLS 2.8.0 (0) EasyRSA Shell
I don't know if it's relevant but in 2..7.0 the path was c:/progra~1 and in 2.8.0 it's c:/program files.
Hopefully the space in the PATH is taken care of.
I will look into this later today.
Thanks for feeding back.
One thing you could try is to make the inline file again.
Same pain for me after removing an inline file via CLI. [Easy-TLS 2.7.0]
1/ Comment the line of the node related to the error message in the easytls/data/easytls-inline-index.txt
2/ ./easytls rehash
The error message does not appear anymore and the usage of ./easytls is fine