key generation in a script or non interactive mode?

Afzal, Naeem M naeem.m.afzal at intel.com
Thu Jul 10 03:50:22 CEST 2008


Hi guys,

I am trying to write a bash script to generate key pairs, but not having any luck. It always goes to interactive mode when you run this script. Does GPG has command line way to generate public/private key pair? This is what I wrote:

#!/bin/bash

gpg --gen-key <<EOF



y
User Name
User at address.com
User Comment
O
Phasephrase123
Phasephrase123
EOF




More information about the Gnupg-users mailing list