diff options
Diffstat (limited to 'docs/files/csar-validation.rst')
-rw-r--r-- | docs/files/csar-validation.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/files/csar-validation.rst b/docs/files/csar-validation.rst index 458dab2..4224218 100644 --- a/docs/files/csar-validation.rst +++ b/docs/files/csar-validation.rst @@ -59,9 +59,11 @@ Generate certificates openssl req -nodes -x509 -sha256 -newkey rsa:4096 -keyout "pnf.key" -out "pnf.cert" -days 365 -subj "/C=NL/ST=Zuid Holland/L=Rotterdam/O=Sparkling Network/OU=IT Dept/CN=$(whoami)s Sign Key" Sign csar file with the private key -------------------------------- +----------------------------------- + openssl dgst -sha256 -sign "pnf.key" -out pnf.sha256.cms pnf.csar Verify signature ---------------- + openssl dgst -sha256 -verify <(openssl x509 -in "pnf.cert" -pubkey -noout) -signature pnf.sha256.cms pnf.csar |