[PATCH] Tests: logging of certificate subjects instead of issuers
Maxim Dounin
mdounin at mdounin.ru
Sat May 25 00:48:25 UTC 2024
# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1716597895 -10800
# Sat May 25 03:44:55 2024 +0300
# Node ID d732a96e05dfcad72b03eb82170e9bd08b2e6aae
# Parent 2d58bb10ff5d78c07563af5d120a881c6e106c99
Tests: logging of certificate subjects instead of issuers.
diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm
--- a/lib/Test/Nginx.pm
+++ b/lib/Test/Nginx.pm
@@ -881,7 +881,7 @@ sub http_start($;%) {
or die $IO::Socket::SSL::SSL_ERROR . "\n";
log_in("ssl cipher: " . $s->get_cipher());
- log_in("ssl cert: " . $s->peer_certificate('issuer'));
+ log_in("ssl cert: " . $s->peer_certificate('subject'));
}
log_out($request);
diff --git a/lib/Test/Nginx/IMAP.pm b/lib/Test/Nginx/IMAP.pm
--- a/lib/Test/Nginx/IMAP.pm
+++ b/lib/Test/Nginx/IMAP.pm
@@ -47,7 +47,7 @@ sub new {
my $s = $self->{_socket};
log_in("ssl cipher: " . $s->get_cipher());
- log_in("ssl cert: " . $s->peer_certificate('issuer'));
+ log_in("ssl cert: " . $s->peer_certificate('subject'));
}
alarm(0);
diff --git a/lib/Test/Nginx/POP3.pm b/lib/Test/Nginx/POP3.pm
--- a/lib/Test/Nginx/POP3.pm
+++ b/lib/Test/Nginx/POP3.pm
@@ -47,7 +47,7 @@ sub new {
my $s = $self->{_socket};
log_in("ssl cipher: " . $s->get_cipher());
- log_in("ssl cert: " . $s->peer_certificate('issuer'));
+ log_in("ssl cert: " . $s->peer_certificate('subject'));
}
alarm(0);
diff --git a/lib/Test/Nginx/SMTP.pm b/lib/Test/Nginx/SMTP.pm
--- a/lib/Test/Nginx/SMTP.pm
+++ b/lib/Test/Nginx/SMTP.pm
@@ -47,7 +47,7 @@ sub new {
my $s = $self->{_socket};
log_in("ssl cipher: " . $s->get_cipher());
- log_in("ssl cert: " . $s->peer_certificate('issuer'));
+ log_in("ssl cert: " . $s->peer_certificate('subject'));
}
alarm(0);
diff --git a/lib/Test/Nginx/Stream.pm b/lib/Test/Nginx/Stream.pm
--- a/lib/Test/Nginx/Stream.pm
+++ b/lib/Test/Nginx/Stream.pm
@@ -63,7 +63,7 @@ sub new {
my $s = $self->{_socket};
log_in("ssl cipher: " . $s->get_cipher());
- log_in("ssl cert: " . $s->peer_certificate('issuer'));
+ log_in("ssl cert: " . $s->peer_certificate('subject'));
}
alarm(0);
More information about the nginx-devel
mailing list