You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After Upgrading my HA-Setup Slave from 18.7.4_1 to 19.7.4, my OpenVPN services can't start with the Message: Cannot load CA certificate file /var/etc/openvpn/server9.ca (only 1 of 2 entries were valid X509 names)
I've got multiple VPN Instances and each one has the same failure.
Master is still on 18.7.4_1.
Expected behavior
a running ovpn service
Relevant log files Sep 25 20:49:46 openvpn[32795]: Exiting due to fatal error Sep 25 20:49:46 openvpn[32795]: Cannot load CA certificate file /var/etc/openvpn/server9.ca (only 1 of 2 entries were valid X509 names) Sep 25 20:49:46 openvpn[32795]: Cannot load CA certificate file /var/etc/openvpn/server9.ca (entry 2 did not validate) Sep 25 20:49:46 openvpn[32795]: OpenSSL: error:0B07C065:x509 certificate routines:X509_STORE_add_cert:cert already in hash table Sep 25 20:49:46 openvpn[32795]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts Sep 25 20:49:46 openvpn[32795]: WARNING: using --duplicate-cn and --client-config-dir together is probably not what you want Sep 25 20:49:46 openvpn[31712]: library versions: OpenSSL 1.0.2s 28 May 2019, LZO 2.10 Sep 25 20:49:46 openvpn[31712]: OpenVPN 2.4.7 amd64-portbld-freebsd11.2 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] built on Sep 10 2019
Additional context
I took a closer look to the CA Files (/var/etc/openvpn/*) and I'm wondering that each CA file as two, 100% identical certs included in one file. I compared that with my Master Node which only has one cert in each CA file.
For example (content modified for privacy reasons):
For testing purposes I deleted the duplicate part in each CA File but as soon as I start the VPN Service, all files contains again a douple cert. Even if I completly delete a CA file and start the service: a new CA file will be created with a douple cert included.
Environment
OPNsense 19.7.4 (amd64, OpenSSL).
The text was updated successfully, but these errors were encountered:
Okay - looks like an OpenVPN bug. I reverted my VM back to 18.7.x and upgraded to 19.1.4 and as soon as OpenVPN 2.4.7 is used - the cert's are corrupted.
I don't think it's an openvpn bug as it only reads the configuration files provisioned by opnsense. If certs are duplicated in files, how can it be the fault of openvpn ?
Describe the bug
After Upgrading my HA-Setup Slave from 18.7.4_1 to 19.7.4, my OpenVPN services can't start with the Message:
Cannot load CA certificate file /var/etc/openvpn/server9.ca (only 1 of 2 entries were valid X509 names)I've got multiple VPN Instances and each one has the same failure.
Master is still on 18.7.4_1.
Expected behavior
a running ovpn service
Relevant log files
Sep 25 20:49:46 openvpn[32795]: Exiting due to fatal error Sep 25 20:49:46 openvpn[32795]: Cannot load CA certificate file /var/etc/openvpn/server9.ca (only 1 of 2 entries were valid X509 names) Sep 25 20:49:46 openvpn[32795]: Cannot load CA certificate file /var/etc/openvpn/server9.ca (entry 2 did not validate) Sep 25 20:49:46 openvpn[32795]: OpenSSL: error:0B07C065:x509 certificate routines:X509_STORE_add_cert:cert already in hash table Sep 25 20:49:46 openvpn[32795]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts Sep 25 20:49:46 openvpn[32795]: WARNING: using --duplicate-cn and --client-config-dir together is probably not what you want Sep 25 20:49:46 openvpn[31712]: library versions: OpenSSL 1.0.2s 28 May 2019, LZO 2.10 Sep 25 20:49:46 openvpn[31712]: OpenVPN 2.4.7 amd64-portbld-freebsd11.2 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] built on Sep 10 2019Additional context
I took a closer look to the CA Files (/var/etc/openvpn/*) and I'm wondering that each CA file as two, 100% identical certs included in one file. I compared that with my Master Node which only has one cert in each CA file.
For example (content modified for privacy reasons):
`# cat /var/etc/openvpn/server9.ca
For testing purposes I deleted the duplicate part in each CA File but as soon as I start the VPN Service, all files contains again a douple cert. Even if I completly delete a CA file and start the service: a new CA file will be created with a douple cert included.
Environment
OPNsense 19.7.4 (amd64, OpenSSL).
The text was updated successfully, but these errors were encountered: