Add an email alias with unattended GPG key generationWhen using GPG key generation does signing the key...

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Why are special aircraft used for the carriers in the United States Navy?

Are Wave equations equivalent to Maxwell equations in free space?

The need of reserving one's ability in job interviews

Where do you go through passport control when transiting through another Schengen airport on your way out of the Schengen area?

Is every open circuit a capacitor?

Convert an array of objects to array of the objects' values

What is better: yes / no radio, or simple checkbox?

Create chunks from an array

Short story about an infectious indestructible metal bar?

Changing the orders of the words

New invention compresses matter to produce energy? or other items? (Short Story)

Does the US political system, in principle, allow for a no-party system?

Can you run a ground wire from stove directly to ground pole in the ground

How can I be pwned if I'm not registered on the compromised site?

The past tense for the quoting particle って

Custom javascript not working

A bug in Excel? Conditional formatting for marking duplicates also highlights unique value

What is Tony Stark injecting into himself in Iron Man 3?

Questions of the type "What do you think other people would think?"

Why would the IRS ask for birth certificates or even audit a small tax return?

Deal the cards to the players

Practical reasons to have both a large police force and bounty hunting network?

3.5% Interest Student Loan or use all of my savings on Tuition?



Add an email alias with unattended GPG key generation


When using GPG key generation does signing the key compromise anonymity?Prevent Private Key Change - GPGImporting GPG Keygpg with gpg-agent never asks for passphraseAdd a UID to your GPG key, but don't make it primaryGPG public key created with GnuPG is rejected by MS Outlook 2010, why?GPG Passphrase + Secret Key tied encryptionAdd an existing key as a subkey to a GPG keyGPG: conventions for adding a UID that isn't an emailLook “inside” a GPG key block?













0















I am generating GPG keys with unattended key generation as described at https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html :



gpg --batch --generate-key "genkeyconf"


with input file genkeyconf formatted as described by the manual.



I can manually add an email alias after key generation using gpg --edit-key "$keyid" adduid, but I do not know how to do it in an unattended way.



Supplying a second Name-Email: $mail or a comma-separated list of mail addresses to the input for the batch key generation does not seem to do it.










share|improve this question





























    0















    I am generating GPG keys with unattended key generation as described at https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html :



    gpg --batch --generate-key "genkeyconf"


    with input file genkeyconf formatted as described by the manual.



    I can manually add an email alias after key generation using gpg --edit-key "$keyid" adduid, but I do not know how to do it in an unattended way.



    Supplying a second Name-Email: $mail or a comma-separated list of mail addresses to the input for the batch key generation does not seem to do it.










    share|improve this question



























      0












      0








      0


      1






      I am generating GPG keys with unattended key generation as described at https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html :



      gpg --batch --generate-key "genkeyconf"


      with input file genkeyconf formatted as described by the manual.



      I can manually add an email alias after key generation using gpg --edit-key "$keyid" adduid, but I do not know how to do it in an unattended way.



      Supplying a second Name-Email: $mail or a comma-separated list of mail addresses to the input for the batch key generation does not seem to do it.










      share|improve this question
















      I am generating GPG keys with unattended key generation as described at https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html :



      gpg --batch --generate-key "genkeyconf"


      with input file genkeyconf formatted as described by the manual.



      I can manually add an email alias after key generation using gpg --edit-key "$keyid" adduid, but I do not know how to do it in an unattended way.



      Supplying a second Name-Email: $mail or a comma-separated list of mail addresses to the input for the batch key generation does not seem to do it.







      shell-script gnupg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 19 hours ago







      highsciguy

















      asked 20 hours ago









      highsciguyhighsciguy

      229212




      229212






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1412071%2fadd-an-email-alias-with-unattended-gpg-key-generation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1412071%2fadd-an-email-alias-with-unattended-gpg-key-generation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...