[nginx-tests] Tests: logging of certificate subjects instead of ...
Maxim Dounin
mdounin at mdounin.ru
Fri May 31 02:53:04 UTC 2024
details: http://freenginx.org/hg/nginx-tests/rev/d732a96e05df
branches:
changeset: 1980:d732a96e05df
user: Maxim Dounin <mdounin at mdounin.ru>
date: Sat May 25 03:44:55 2024 +0300
description:
Tests: logging of certificate subjects instead of issuers.
diffstat:
lib/Test/Nginx.pm | 2 +-
lib/Test/Nginx/IMAP.pm | 2 +-
lib/Test/Nginx/POP3.pm | 2 +-
lib/Test/Nginx/SMTP.pm | 2 +-
lib/Test/Nginx/Stream.pm | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diffs (60 lines):
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