virt-pki-query-dn(1) Virtualization Support virt-pki-query-dn(1)

# [Name](#Name)

virt-pki-query-dn - extract Distinguished Name from a PEM certificate

# [SYNOPSIS](#SYNOPSIS)

**virt-pki-query-dn** \[*OPTION*]... *FILE*

# [DESCRIPTION](#DESCRIPTION)

Extract Distinguished Name from a PEM certificate.

The output is meant to be used in the **tls\_allowed\_dn\_list** configuration option in the **libvirtd.conf** file.

# [OPTIONS](#OPTIONS)

**-h**, **--help**

Display command line help usage then exit.

**-V**, **--version**

Display version information then exit.

# [EXIT STATUS](#EXIT_STATUS)

The exit status will be zero on success, non-zero on failure.

# [AUTHOR](#AUTHOR)

Martin Kletzander

# [BUGS](#BUGS)

Please report all bugs you discover. This should be done via either:

1\.

the mailing list

&lt;https://libvirt.org/contact.html&gt;

2\.

the bug tracker

&lt;https://libvirt.org/bugs.html&gt;

Alternatively, you may report bugs to your software distributor / vendor.

# [COPYRIGHT](#COPYRIGHT)

Copyright (C) 2021 Red Hat, Inc.

# [LICENSE](#LICENSE)

**virt-pki-query-dn** is distributed under the terms of the GNU GPL v2+. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# [SEE ALSO](#SEE_ALSO)

[virsh(1)](/man/enterprise-packages/libvirt/virsh.1), [virt-pki-validate(1)](/man/enterprise-packages/libvirt/virt-pki-validate.1), online PKI setup instructions &lt;https://libvirt.org/remote.html&gt;, &lt;https://libvirt.org/&gt;

---

Document: virt-pki-query-dn(1) from libvirt 12.8.0-r0 (Chainguard OS)
Source: https://gitlab.com/libvirt/libvirt.git
