add alternative subject names in long output

This commit is contained in:
Shini31 2016-01-12 15:15:28 +01:00
parent 0adf67b791
commit 2aaa2da4cc
1 changed files with 5 additions and 1 deletions

View File

@ -153,7 +153,11 @@ sub run {
foreach my $subject_name (@subject_name) {
if ($subject_name =~ /$self->{option_results}->{subjectname}/mi) {
$subject_altname = $subject_name;
next;
} else {
if ($subject_name =~/[\w\-]+(\.[\w\-]+)*\.\w+/) {
$subject_altname = $subject_name;
$self->{output}->output_add(long_msg => sprintf("Subject Name '%s' is also present in Certificate", $subject_altname));
}
}
}