Thanks, Mistwang. There was a spurious character at the beginning of the certificate file. It appears it was getting added whenever I created one on the new system.
I have re-installed the openssl files and that seems to have fixed it.
Be interesting to find out how and why it happened, but happy that it is now fixed.