I´m trying to setup my own openvpn-server and following this guide:
https://github.com/RMerl/asuswrt-merlin/wiki/Generating-OpenVPN-keys-using-Easy-RSA
Everything works fine setting up all the keys and certificates (have tried both on router and a ubuntu-computer, more or less the same result eg keys differ but everything else is the same).
The problem is when I´m do copy-paste my key/cert into the routers webgui - VPN - OpenVPN Servers - Advanced - Content modification of Keys & Certification -- Everything is ok but pasting in Server certificate. From what I understand I should copy all of server.crt beginning with:
"Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1 (0x1)
Signature Algorithm: sha1WithRSAEncryption ......."
And ending with:
".....
FQuI3/NLaDg++vsT2HA9CWkX8Jb25EW2nMfjQ5LGv75cIT008nwSUXSGBHNxUwOI
5GDT
-----END CERTIFICATE-----"
The problem is that there is a limit of characters (3499) and I have is around 5500 characters . That means it stops pasting around Signature Algorithm.
I found this http://www.snbforums.com/threads/openvpn-server-certificate-no-longer-fits.13404/ which in someway almost explains my problem (probably?) but I can´t figure out how to solve it.
Anyone can guide me?
https://github.com/RMerl/asuswrt-merlin/wiki/Generating-OpenVPN-keys-using-Easy-RSA
Everything works fine setting up all the keys and certificates (have tried both on router and a ubuntu-computer, more or less the same result eg keys differ but everything else is the same).
The problem is when I´m do copy-paste my key/cert into the routers webgui - VPN - OpenVPN Servers - Advanced - Content modification of Keys & Certification -- Everything is ok but pasting in Server certificate. From what I understand I should copy all of server.crt beginning with:
"Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1 (0x1)
Signature Algorithm: sha1WithRSAEncryption ......."
And ending with:
".....
FQuI3/NLaDg++vsT2HA9CWkX8Jb25EW2nMfjQ5LGv75cIT008nwSUXSGBHNxUwOI
5GDT
-----END CERTIFICATE-----"
The problem is that there is a limit of characters (3499) and I have is around 5500 characters . That means it stops pasting around Signature Algorithm.
I found this http://www.snbforums.com/threads/openvpn-server-certificate-no-longer-fits.13404/ which in someway almost explains my problem (probably?) but I can´t figure out how to solve it.
Anyone can guide me?