What's new

[Solved] Certificate error in Openvpn (was previously working)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

cowst

Senior Member
Hi,
I recently formatted jffs and enabled scripts, and since then my previously working openvpn connection now fails to connect with the following:

VERIFY ERROR: depth=1, error=self signed certificate in certificate chain: C=TW, ST=TW, L=Taipei, O=ASUS, CN=RT-N66U, emailAddress=me@myhost.mydomain

any known reason for this (I remember in the past there were some warning in FW updates meddling with jffs)?
 
Formatting jffs causes new key/certs to be generated.

Sent from my Nexus 5X using Tapatalk
 
So I remembered correctly.
But now, how do I make the openvpn server use the new ones and the client configuration match them as well?
Before it was all out of the box.

Thanks
 
So I remembered correctly.
But now, how do I make the openvpn server use the new ones and the client configuration match them as well?
Before it was all out of the box.

Thanks

Re-export fresh .ovpn config files to each client from the General setting tab on the Openvpn Server webui page? (Would the Openvpn server not automatically use them in that (jffs) location?)
 
Last edited:
Re-export fresh .ovpn config files to each client from the General setting tab on the Openvpn Server webui page? (Would the Openvpn server not automatically use them in that (jffs) location?)
I changed subnet, so everything should be generated anew.
Then I restarted the server (you never know), exported the client1.ovpn and sent to an old working client and a brand new phone.
Both have same cert issue.

Sent from my SM-G920F using Tapatalk
 
When I ran into something similar I bit the bullet and restored to factory default settings, manually reconfigured and then re-started the Openvpn server for the first time, as it were, which regenerates the keys and certs, and then re-exported the client .ovpn config files. However, I know you are more clued up than I, so you'll probably find an easier way.
 
That would be my very last weapon, I would regenerate certificates myself somehow (I'd have to figure the appropriate way).
However, I hope merlin has a simpler advice.
 
That would be my very last weapon, I would regenerate certificates myself somehow (I'd have to figure the appropriate way).
However, I hope merlin has a simpler advice.

Just make sure you export the updated ovpn config to your clients, so they will match the existing router certs.
 
Just make sure you export the updated ovpn config to your clients, so they will match the existing router certs.
That was the first thing I checked.
I'll search again the file by name in each device and delete it before exporting again.
No room for mistake.

So I understand that it should still work out of the box after the jffs format.

Sent from my SM-G920F using Tapatalk
 
I feel stupid.
wiping all client1.ovpn everywhere, changing a openvpn server setting, restarting, importing again in the new phone, it worked :)
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top