I think you missed this part of the instructions:
Whatever method you use to generate the certificate and key files, the
Common Name value used for the server and client certificates/keys
must each differ from the Common Name value used for the CA
certificate. Otherwise, the certificate and key files will not work
for servers compiled using OpenSSL.
When OpenSSL prompts you for the Common Name for each certificate, use different names.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…