Page MenuHomeVyOS Platform

Add ability to show certificate full chain in pem format
In progress, NormalPublicFEATURE REQUEST

Description

Summary

Add op-mode command having ability to show certificate full chain in pem format as part of PKI configuration.

Use case

Currently, we have the following to render certificate in PEM format.

  • show pki ca <NAME> pem
  • show pki certificate <NAME> pem
  • show pki certificate <NAME> private pem

But there isn’t a way to render the full chain including the intermediate CA (and the certificate perivate key if requested) for the certificate in PEM format.

We need to allow users to easily export a certificate along with its CA hierarchy for use in external applications that require the full chain to be provided in a single file.

So, for completeness we should have:

  • For ca:

    - show pki ca NAME pem
    - show pki ca NAME pem full-chain

  • For certificate:

    - show pki certificate NAME pem
    - show pki certificate NAME pem full-chain
    - show pki certificate NAME private pem
    - show pki certificate NAME private pem full-chain

Additional information

The security concern for exposing private key is orthogonal to the implementation.
Necessary restrictions to the operator commands can be applied via command-policy
like set system login operator-group NAME command-policy.

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Related Objects

Event Timeline

a.pidnebesny renamed this task from Add operation commands for display PKI private key in PEM foramt to Add operational commands to display PKI private keys and certificate bundles in PEM format.

Technically, this will be a security issue.
Only users with admin/root rights should be able to view and check all certificates/private keys, etc.

We already show the full private key in our configuration as we only have admin mode.

Limiting this to admin users with the new op-mode permission is definately a must, but adding this formatter now does not make the system any less secure.

We will get rid of this in the near future if we implement it now.
If we are focusing on the Common Criteria Profile for Network Devices, it is not accepted.
Needs to figure out in which form we can/should implement it if we want.

dmbaturin triaged this task as Normal priority.Mar 16 2026, 2:24 PM
c-po renamed this task from Add operational commands to display PKI private keys and certificate bundles in PEM format to Add ability to show certificate full chain in pem format.Jun 5 2026, 4:06 PM
c-po updated the task description. (Show Details)