I've been getting an error on my router saying "Certification Authentication / Server certification / Server Key field error! Please check the Keys and Certification contents on the Advanced Settings page." But when I go to the advanced page, nothing seems out of place. I tried resetting OpenVPN settings through nvram. I have also tried a solution given in this forum page
https://forums.openvpn.net/viewtopic.php?t=19029 where user dscreen says,
"I got the same error with my Asus RT-AC68U router. The DH key is too small now at 512 bits. You can generate a new DH Key using the terminal window on your mac...by typing in OpenSSL...then dhparam -out dh2048.pem 2048
You can view the result with cat dh_2048.pem
It will list the begin and end with the dh key code inbetween. Copy that information and paste it into your settings in your router's VPN advanced settings then go to Authorization Mode and click on Content modification of Keys & Certification.
Paste the new DH key information into the Diffie Hellman Parameters box.
You must hit Apply at the bottom of that screen for it to take and work correctly."
My router ignored me when I pressed the apply button. So that didn't work.
However, I did notice that when the certification error gets thrown, I see an extra client config file but with a .ovpnr extension. I compared both the client.ovpn and the client.ovpnr files and they are both the same. What is this extra client.ovpnr file and why does it appear an hour or so after I set the configurations through the web gui?
My tunnel works as I've check the logs and wireshark. So, how can I fix this?