Command Line

 View Only
Expand all | Collapse all

How to change the --sign-key hash algorithm?

  • 1.  How to change the --sign-key hash algorithm?

    Posted Jun 28, 2017 08:08 AM

    Problem:

    when use pgp --sign-key <keyID> --signer <other-user> --passphrase <pass> to sign a pub key, it produce this details.

    i want change  "Hash: SHA-1" to another. i use --hash,or --add-prederred-hash,or --set-preferred-hash ,but it does not work

    I have google the solution,someone tell me that ,the command like above is tell other how to do with your key.

    I want to konw how to tell the pgp commandline tool,when sign a pub key use sha512 algo!!

     
    pgp --list-sig-details bb
    Signature Details: bb<b@b.com>
        Signed Key ID: 0x35746B38 (0x1C1D9D6535746B38)
       Signed User ID: bb<b@b.com>
        Signer Key ID: 0x35746B38 (0x1C1D9D6535746B38)
       Signer User ID: bb<b@b.com>
                 Type: RSA signature
                 Hash: SHA-1
           Exportable: Yes
               Status: Active
              Created: 2017-06-27
              Expires: Never
          Trust Depth: 0
               Domain: Absent
    Signature Details: bb<b@b.com>
        Signed Key ID: 0x35746B38 (0x1C1D9D6535746B38)
       Signed User ID: bb<b@b.com>
        Signer Key ID: 0xE1118152 (0x74AF88A9E1118152)
       Signer User ID: aa<aa@win7.com>
                 Type: RSA trusted-introducer signature
                 Hash: SHA-1
           Exportable: Yes
               Status: Active
              Created: 2017-06-28
              Expires: Never
          Trust Depth: 3
               Domain: Absent
    2 signatures found

     

     

     

     

     



  • 2.  RE: How to change the --sign-key hash algorithm?

    Posted Jul 25, 2017 11:53 AM

    Hi,

    you can change hash for key and sub-key

    For signature you can't, it's always SHA-1.

    BR