mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
Add suggestions for virt-pki-query-dn usage
To make it easier for users to figure out how the DN should be formatted. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
9715043544
commit
5d972ad910
@ -259,6 +259,10 @@ Blank lines and comments beginning with <code>#</code> are ignored.
|
||||
Note also that GnuTLS returns DNs without spaces
|
||||
after commas between the fields (and this is what we check against),
|
||||
but the <code>openssl x509</code> tool shows spaces.
|
||||
</p>
|
||||
To make it easy to see the order of the fields in the DN a helper executable
|
||||
<code>virt-pki-query-dn</code> is provided for this particular use case.
|
||||
<p>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -292,6 +292,11 @@
|
||||
#
|
||||
# Any * matches any number of consecutive spaces, like a simplified glob(7).
|
||||
#
|
||||
# The format of the DN for a particular certificate can be queried
|
||||
# using:
|
||||
#
|
||||
# virt-pki-query-dn clientcert.pem
|
||||
#
|
||||
# NB If this is an empty list, no client can connect, so comment out
|
||||
# entirely rather than using empty list to disable these checks
|
||||
#
|
||||
|
@ -371,7 +371,7 @@ virNetTLSContextCheckCertDNACL(const char *dname,
|
||||
virReportError(VIR_ERR_SYSTEM_ERROR, "%s",
|
||||
_("Client's Distinguished Name is not on the list "
|
||||
"of allowed clients (tls_allowed_dn_list). Use "
|
||||
"'certtool -i --infile clientcert.pem' to view the "
|
||||
"'virt-pki-query-dn clientcert.pem' to view the "
|
||||
"Distinguished Name field in the client certificate, "
|
||||
"or run this daemon with --verbose option."));
|
||||
return 0;
|
||||
|
@ -185,6 +185,10 @@ tls_no_verify_certificate = 1
|
||||
#
|
||||
# Any * matches any number of consecutive spaces, like a simplified glob(7).
|
||||
#
|
||||
# The format of the DN for a particular certificate can be queried
|
||||
# using:
|
||||
#
|
||||
# virt-pki-query-dn clientcert.pem
|
||||
#
|
||||
# NB If this is an empty list, no client can connect, so comment out
|
||||
# entirely rather than using empty list to disable these checks
|
||||
|
@ -149,6 +149,10 @@ tls_no_verify_certificate = 1
|
||||
#
|
||||
# Any * matches any number of consecutive spaces, like a simplified glob(7).
|
||||
#
|
||||
# The format of the DN for a particular certificate can be queried
|
||||
# using:
|
||||
#
|
||||
# virt-pki-query-dn clientcert.pem
|
||||
#
|
||||
# NB If this is an empty list, no client can connect, so comment out
|
||||
# entirely rather than using empty list to disable these checks
|
||||
|
Loading…
Reference in New Issue
Block a user