Detect subject_cn from certificate content