From nobody Tue Feb 10 04:02:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1639152569; cv=none; d=zohomail.com; s=zohoarc; b=kOBjH+Wm8+kbrhPILPxmI5jLO/beCqcbTCFdoDr5MAXcAYeQVDYewM0zyX7HbiY3mX1NurLSTOasalFxj8aM74LTG/MC3ubNhWs70L8mgP0H5220bxoCVD3kABoDgbDhg5IKjuFHftmEf8HQc+oh7riHSLBPImvh+JOrC3/W2gI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639152569; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=o+Ldwf7xpMOWEaxNkpjkYsGff4+x1n1NjMgsD07NY9Y=; b=U+iZuWIlRBDhu+8PmRuLoC3HoloujVtizZ+Xu7NqCYU9Gzzy+kgeWrxu+5iJE/NfUpBAXVW886+SMg/9w528ezANjjJj6pI3j2MkszOgiBh15u/JDEpxrtlsBfeCEw91ycmmOMM76kyLUlUiHosmNlBjRfz9vPZwo+8AHc4MFRE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1639152569056252.64779226941732; Fri, 10 Dec 2021 08:09:29 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-453--eusc0MpN4WfXv3-Iqdx0A-1; Fri, 10 Dec 2021 11:09:26 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C756F18C8C2D; Fri, 10 Dec 2021 16:09:19 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7220626DE5; Fri, 10 Dec 2021 16:09:19 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1F9D11809CB9; Fri, 10 Dec 2021 16:09:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1BAG6soJ015394 for ; Fri, 10 Dec 2021 11:06:54 -0500 Received: by smtp.corp.redhat.com (Postfix) id 45C221B42C; Fri, 10 Dec 2021 16:06:54 +0000 (UTC) Received: from kinshicho.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.40.194.89]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4FDF960622 for ; Fri, 10 Dec 2021 16:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639152568; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=o+Ldwf7xpMOWEaxNkpjkYsGff4+x1n1NjMgsD07NY9Y=; b=WATxjUSmS4mOzXM9py5vg9i9ynxswXJBr3YoacF3rqJ9G5IFJYL8H7JMk9bESGaYryg8Pn H1rWcxANmdigISygbPhPteVqSWMwynTMrbQF/9wGWj/o3InwRK0dfBW2WZQhKDrvH2v9z8 zKuIXhw5CsPfLZzNe/xqGsqueSyaPKk= X-MC-Unique: -eusc0MpN4WfXv3-Iqdx0A-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 6/6] virt-pki-query-dn: Add manual page Date: Fri, 10 Dec 2021 17:06:34 +0100 Message-Id: <20211210160634.366061-7-abologna@redhat.com> In-Reply-To: <20211210160634.366061-1-abologna@redhat.com> References: <20211210160634.366061-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1639152569614100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Andrea Bolognani Reviewed-by: J=C3=A1n Tomko --- docs/manpages/meson.build | 1 + docs/manpages/virt-pki-query-dn.rst | 91 +++++++++++++++++++++++++++++ libvirt.spec.in | 1 + 3 files changed, 93 insertions(+) create mode 100644 docs/manpages/virt-pki-query-dn.rst diff --git a/docs/manpages/meson.build b/docs/manpages/meson.build index e80fff48c8..bf6fc730e0 100644 --- a/docs/manpages/meson.build +++ b/docs/manpages/meson.build @@ -16,6 +16,7 @@ docs_man_files =3D [ { 'name': 'virt-admin', 'section': '1', 'install': true }, { 'name': 'virt-host-validate', 'section': '1', 'install': conf.has('WIT= H_HOST_VALIDATE') }, { 'name': 'virt-login-shell', 'section': '1', 'install': conf.has('WITH_= LOGIN_SHELL') }, + { 'name': 'virt-pki-query-dn', 'section': '1', 'install': true }, { 'name': 'virt-pki-validate', 'section': '1', 'install': true }, { 'name': 'virt-qemu-run', 'section': '1', 'install': conf.has('WITH_QEM= U') }, { 'name': 'virt-ssh-helper', 'section': '1', 'install': true }, diff --git a/docs/manpages/virt-pki-query-dn.rst b/docs/manpages/virt-pki-q= uery-dn.rst new file mode 100644 index 0000000000..0e162d6dc5 --- /dev/null +++ b/docs/manpages/virt-pki-query-dn.rst @@ -0,0 +1,91 @@ +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +virt-pki-query-dn +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +------------------------------------------------- +extract Distinguished Name from a PEM certificate +------------------------------------------------- + +:Manual section: 1 +:Manual group: Virtualization Support + +.. contents:: + + +SYNOPSIS +=3D=3D=3D=3D=3D=3D=3D=3D + +``virt-pki-query-dn`` *FILE* +``virt-pki-query-dn`` *OPTION* + + +DESCRIPTION +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +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 +=3D=3D=3D=3D=3D=3D=3D + +``-h``, ``--help`` + +Display command line help usage then exit. + +``-V``, ``--version`` + +Display version information then exit. + + +EXIT STATUS +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +The exit status will be zero on success, non-zero on failure. + + +AUTHOR +=3D=3D=3D=3D=3D=3D + +Martin Kletzander + + +BUGS +=3D=3D=3D=3D + +Please report all bugs you discover. This should be done via either: + +#. the mailing list + + `https://libvirt.org/contact.html `_ + +#. the bug tracker + + `https://libvirt.org/bugs.html `_ + +Alternatively, you may report bugs to your software distributor / vendor. + + +COPYRIGHT +=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Copyright (C) 2021 Red Hat, Inc. + + +LICENSE +=3D=3D=3D=3D=3D=3D=3D + +``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 +=3D=3D=3D=3D=3D=3D=3D=3D + +virsh(1), virt-pki-validate(1), +`online PKI setup instructions `_, +`https://www.libvirt.org/ `_ diff --git a/libvirt.spec.in b/libvirt.spec.in index 9cf1046604..22a15c7d23 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1986,6 +1986,7 @@ exit 0 %files client %{_mandir}/man1/virsh.1* %{_mandir}/man1/virt-xml-validate.1* +%{_mandir}/man1/virt-pki-query-dn.1* %{_mandir}/man1/virt-pki-validate.1* %{_bindir}/virsh %{_bindir}/virt-xml-validate --=20 2.31.1