Like you can see in the error: "40D714598C7F0000:error:06800097:asn1 encoding routines:(unknown function):string too long:crypto/asn1/a_mbstr.c:106:maxsize=64". According to RFC3280, the CN cannot be longer than 64 bits.