A poster on the forum reported that some of his OpenVPN clients always showed DISCONNECTED even after several hours of actual connection of the client.
After some investigation in the forum thread iy was identified that the problem occurs when the certificate Common Name that has been used has underscores.
The certificate with underscores is accepted (and this is in line with RFC5280) so the connection is able to be made.
The code that checks for the status extracts the common name for the connection and then there is regex code that replaces all underscores in the common name by spaces. This means that the status for the certificate common name is never found as the status common name has been changed.
Reproduced the problem on my vm testbed system.
Will create a patch that corrects this.
Patch tested out on vm test bed.
Patch submitted to dev mailing list and patchwork.
Patch has been merged into next (CU178)
Bug verified to be fixed.