From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: rhi@pengutronix.de, Bastian Krause <bst@pengutronix.de>
Subject: Re: [ptxdist] [PATCH 5/5] doc: introduce ref_code_signing_helpers
Date: Fri, 12 Jun 2020 11:28:00 +0200 [thread overview]
Message-ID: <20200612092800.GB27654@pengutronix.de> (raw)
In-Reply-To: <20200608085305.30964-6-bst@pengutronix.de>
On Mon, Jun 08, 2020 at 10:53:05AM +0200, Bastian Krause wrote:
> Signed-off-by: Bastian Krause <bst@pengutronix.de>
This does not apply on master. The sections in doc/ref_manual.rst are now
separate pages. Can you please rebase.
Michael
> ---
> doc/ref_code_signing_helpers.inc | 246 +++++++++++++++++++++++++++++++
> doc/ref_manual.rst | 1 +
> 2 files changed, 247 insertions(+)
> create mode 100644 doc/ref_code_signing_helpers.inc
>
> diff --git a/doc/ref_code_signing_helpers.inc b/doc/ref_code_signing_helpers.inc
> new file mode 100644
> index 000000000..cec5c9558
> --- /dev/null
> +++ b/doc/ref_code_signing_helpers.inc
> @@ -0,0 +1,246 @@
> +.. _code_signing_helper_functions:
> +
> +Code Signing Helper Functions
> +-----------------------------
> +
> +PTXdist provides various bash helper functions to be used in :ref:`code signing
> +providers <code_signing_providers>`.
> +These helpers set up SoftHSM, define roles, perform PKCS#11 URI handling as
> +well as key and certificate authority (CA) handling.
> +
> +PTXdist stores URIs and CAs using these helpers in
> +``$(PTXDIST_SYSROOT_HOST)/var/lib/keys/<signing-provider>/<role>/{uri,ca.pem}``.
> +
> +.. _cs_init_softhsm:
> +
> +cs_init_softhsm
> +~~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_init_softhsm
> +
> +Initialize SoftHSM, and set the initial pins.
> +
> +Necessary package dependencies for code signing provider: ``HOST_SOFTHSM``
> +
> +.. _cs_define_role:
> +
> +cs_define_role
> +~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_define_role <role>
> +
> +Define new key role.
> +
> +A default PKCS#11 URI is set implicitly as convenience for SoftHSM use cases.
> +
> +.. _cs_set_uri:
> +
> +cs_set_uri
> +~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_set_uri <role> <URI>
> +
> +Set given PKCS#11 URI for role.
> +
> +Preconditions:
> +
> +- the role must have been defined (see :ref:`cs_define_role`)
> +
> +.. _cs_get_uri:
> +
> +cs_get_uri
> +~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_get_uri <role>
> +
> +Get PKCS#11 URI for role.
> +
> +Preconditions:
> +
> +- the URI must have been set (see :ref:`cs_set_uri`)
> +
> +cs_import_cert_from_der
> +~~~~~~~~~~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_import_cert_from_der <role> <DER>
> +
> +Import certificate from a given DER file for role.
> +To be used with SoftHSM only.
> +
> +Preconditions:
> +
> +- the role must have been defined (see :ref:`cs_define_role`)
> +- SoftHSM must have been initialized (see :ref:`cs_init_softhsm`)
> +
> +Necessary package dependencies for code signing provider: ``HOST_SOFTHSM``
> +
> +cs_import_cert_from_pem
> +~~~~~~~~~~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_import_cert_from_pem <role> <PEM>
> +
> +Import certificate from a given PEM file for role.
> +To be used with SoftHSM only.
> +
> +Preconditions:
> +
> +- the role must have been defined (see :ref:`cs_define_role`)
> +- SoftHSM must have been initialized (see :ref:`cs_init_softhsm`)
> +
> +Necessary package dependencies for code signing provider: ``HOST_SOFTHSM``, ``HOST_OPENSSL``
> +
> +cs_import_pubkey_from_pem
> +~~~~~~~~~~~~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_import_pubkey_from_pem <role> <PEM>
> +
> +Import public key from a given PEM file for role.
> +To be used with SoftHSM only.
> +
> +Preconditions:
> +
> +- the role must have been defined (see :ref:`cs_define_role`)
> +- SoftHSM must have been initialized (see :ref:`cs_init_softhsm`)
> +
> +Necessary package dependencies for code signing provider: ``HOST_SOFTHSM``, ``HOST_OPENSSL``
> +
> +cs_import_privkey_from_pem
> +~~~~~~~~~~~~~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_import_privkey_from_pem <role> <PEM>
> +
> +Import private key from a given PEM file for role.
> +To be used with SoftHSM only.
> +
> +Preconditions:
> +
> +- the role must have been defined (see :ref:`cs_define_role`)
> +- SoftHSM must have been initialized (see :ref:`cs_init_softhsm`)
> +
> +Necessary package dependencies for code signing provider: ``HOST_SOFTHSM``, ``HOST_OPENSSL``
> +
> +cs_import_key_from_pem
> +~~~~~~~~~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_import_key_from_pem <role> <PEM>
> +
> +Import private/public key pair from a given PEM file for role.
> +To be used with SoftHSM only.
> +
> +Preconditions:
> +
> +- the role must have been defined (see :ref:`cs_define_role`)
> +- SoftHSM must have been initialized (see :ref:`cs_init_softhsm`)
> +
> +Necessary package dependencies for code signing provider: ``HOST_SOFTHSM``, ``HOST_OPENSSL``
> +
> +.. _cs_get_ca:
> +
> +cs_get_ca
> +~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_get_ca <role>
> +
> +Get path to the CA in PEM format for role.
> +
> +Preconditions:
> +
> +- a certificate must have been appended to the CA
> + (see :ref:`cs_append_ca_from_pem`, :ref:`cs_append_ca_from_der`,
> + :ref:`cs_append_ca_from_uri`)
> +
> +.. _cs_append_ca_from_pem:
> +
> +cs_append_ca_from_pem
> +~~~~~~~~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_append_ca_from_pem <role> <PEM>
> +
> +Append certificate from a given PEM file for role.
> +
> +Preconditions:
> +
> +- the role must have been defined (see :ref:`cs_define_role`)
> +
> +.. _cs_append_ca_from_der:
> +
> +cs_append_ca_from_der
> +~~~~~~~~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_append_ca_from_der <role> <DER>
> +
> +Append certificate from a given DER file for role.
> +
> +Preconditions:
> +
> +- the role must have been defined (see :ref:`cs_define_role`)
> +
> +Necessary package dependencies for code signing provider: ``HOST_OPENSSL``
> +
> +.. _cs_append_ca_from_uri:
> +
> +cs_append_ca_from_uri
> +~~~~~~~~~~~~~~~~~~~~~
> +
> +Usage:
> +
> +.. code-block:: bash
> +
> + cs_append_ca_from_uri <role> [<URI>]
> +
> +Append certificate from a given PKCS#11 URI for role.
> +If URI is omitted the already set URI for role is used.
> +
> +Preconditions:
> +
> +- the role must have been defined (see :ref:`cs_define_role`)
> +
> +Necessary package dependencies for code signing provider: ``HOST_OPENSSL``, ``HOST_EXTRACT_CERT``
> diff --git a/doc/ref_manual.rst b/doc/ref_manual.rst
> index 6541da3ea..e605e52a6 100644
> --- a/doc/ref_manual.rst
> +++ b/doc/ref_manual.rst
> @@ -4,6 +4,7 @@ PTXdist Reference
> .. include:: ref_make_variables.inc
> .. include:: ref_make_macros.inc
> .. include:: ref_rule_file_layout.inc
> +.. include:: ref_code_signing_helpers.inc
>
> .. _ptxdist_parameter_reference:
>
> --
> 2.27.0
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next prev parent reply other threads:[~2020-06-12 9:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-08 8:53 [ptxdist] [PATCH 0/5] Add code-signing-provider template, add code signing docs Bastian Krause
2020-06-08 8:53 ` [ptxdist] [PATCH 1/5] package templates: add code-signing-provider template Bastian Krause
2020-06-12 9:18 ` Michael Olbrich
2020-06-12 9:54 ` Michael Olbrich
2020-06-12 10:05 ` Michael Olbrich
2020-06-12 11:05 ` Bastian Krause
2020-06-17 14:45 ` Bastian Krause
2020-06-16 13:56 ` Bastian Krause
2020-06-16 15:00 ` Michael Olbrich
2020-06-08 8:53 ` [ptxdist] [PATCH 2/5] doc: dev_manual: split up into multiple files Bastian Krause
2020-06-08 8:53 ` [ptxdist] [PATCH 3/5] doc: move code signing docs from scripts/ into doc/ Bastian Krause
2020-06-08 8:53 ` [ptxdist] [PATCH 4/5] doc: dev_code_signing: rework and extend code signing section Bastian Krause
2020-06-08 10:16 ` Roland Hieber
2020-06-12 8:55 ` Bastian Krause
2020-06-08 8:53 ` [ptxdist] [PATCH 5/5] doc: introduce ref_code_signing_helpers Bastian Krause
2020-06-12 9:28 ` Michael Olbrich [this message]
2020-06-12 9:49 ` Michael Olbrich
2020-06-08 10:17 ` [ptxdist] [PATCH 0/5] Add code-signing-provider template, add code signing docs Roland Hieber
2020-06-09 15:04 ` Ladislav Michl
2020-06-12 10:04 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200612092800.GB27654@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=bst@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=rhi@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox