RPM custom Linux package signature

Last post 03-19-2020, 7:59 AM by Wwong. 1 replies.
Sort Posts: Previous Next
  • RPM custom Linux package signature
    Posted: 03-12-2020, 3:21 PM

    Hello,

    if you want to have option to sign off you rpm package during wizard createing. you need this rpm package: gnupg2

    So install it by command: yum install gnupg2

    if you want to do it manualy like you create your own modified rpm Commvault package.

    List you keys by command: gpg --list-keys

    pub   1024R/A3781E9F 2020-02-28
    uid                  Filip Hasa (Filip Hasa's signing key) <filip.hasa@gmail.com>

    edit ~/.rpmmacros like this:

    %_signature gpg
    %_gpg_path /root/.gnupg
    %_gpg_name Filip Hasa
    %_gpgbin /usr/bin/gpg2
    %__gpg_sign_cmd %{__gpg} gpg --force-v3-sigs --batch --verbose --no-armor --passphrase-fd 3 --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} --digest-algo sha256 %{__plaintext_filename}'

    this file contain just five lines.

    than run command for signing your rpm: rpm --addsign /full_path_to_your/file.rpm

    Hope this help.

    Filip Hasa

  • Re: RPM custom Linux package signature
    Posted: 03-19-2020, 7:59 AM

    Hi Filip

    Another great post 

    Appreciate the knowledge sharing

    Regards

    Winston

The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Close
Copyright © 2020 Commvault | All Rights Reserved. | Legal | Privacy Policy