return(CERT_GetNameElement(NULL, name, SEC_OID_AVA_COMMON_NAME));
return(CERT_GetLastNameElement(NULL, name, SEC_OID_AVA_COMMON_NAME));
CERT_GetCommonName(CERTName *name){    return(CERT_GetNameElement(NULL, name, SEC_OID_AVA_COMMON_NAME));}