GPGSM GENKEY - Using the GNU Privacy Guard
Description: Using the GNU Privacy Guard

Next: GPGSM LISTKEYS, Previous: GPGSM VERIFY, Up: GPGSM Protocol

#### 4.7.5 Generating a Key

This is used to generate a new keypair, store the secret part in the PSE and the public key in the key database. We will probably add optional commands to allow the client to select whether a hardware token is used to store the key. Configuration options to `GPGSM` can be used to restrict the use of this command.

           GENKEY

`GPGSM` checks whether this command is allowed and then does an INQUIRY to get the key parameters, the client should then send the key parameters in the native format:

             S: INQUIRE KEY_PARAM native
             C: D foo:fgfgfg
             C: D bar
             C: END

Please note that the server may send Status info lines while reading the data lines from the client. After this the key generation takes place and the server eventually does send an ERR or OK response. Status lines may be issued as a progress indicator.