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

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

#### 4.8.7 Export certificates

To export certificate from the internal key database the command:

           EXPORT [--data [--armor] [--base64]] [--] pattern

is used. To allow multiple patterns (which are ORed) quoting is required: Spaces are to be translated into "+" or into "%20"; in turn this requires that the usual escape quoting rules are done.

If the `--data` option has not been given, the format of the output depends on what was set with the OUTPUT command. When using PEM encoding a few informational lines are prepended.

If the `--data` has been given, a target set via OUTPUT is ignored and the data is returned inline using standard `D`-lines. This avoids the need for an extra file descriptor. In this case the options `--armor` and `--base64` may be used in the same way as with the OUTPUT command.