]> git.ipfire.org Git - thirdparty/libvirt.git/commit
fix regex to check CN from server certificate
authorTiago M. Vieira <tmv@redhat.com>
Fri, 26 Jan 2018 19:33:02 +0000 (14:33 -0500)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 8 Feb 2018 17:05:05 +0000 (18:05 +0100)
commitd0a60771abf16f285ae19bf0397dece7f9fd70fa
treec2f99ae4fa1174af00fda96baf7d1e12dabc4657
parente19dde1d0c1da0812bfebaf90db53ef6417f78cc
fix regex to check CN from server certificate

Currently when the script validates the PKI files and
the certificate 'Subject:' field contains RDNs after
the Common Name (CN), these values are also included,
creating a false result that the CN is not correct.

A small change to the sed regex fixes this issue, by
extracting only the value for CN and nothing else. The
regex is replaced with the exact same regex used to
extract the CN value from the client certificate.
tools/virt-pki-validate.in