gpg_keys: GPG keyring management

gpg_keysR Documentation

GPG keyring management

Description

Signing or encrypting with GPG require that the keys are stored in your personal keyring. Use gpg_version to see which keyring (home dir) you are using. Also see gpg_keygen for generating a new key.

Usage

gpg_import(file)

gpg_recv(id, search = NULL, keyserver = NULL)

gpg_send(id, keyserver = NULL)

gpg_delete(id, secret = FALSE)

gpg_export(id, secret = FALSE)

gpg_list_keys(search = "", secret = FALSE)

gpg_list_signatures(id)

Arguments

file

path to the key file or raw vector with key data

id

unique ID of the pubkey to import (starts with ⁠0x⁠). Alternatively you can specify a search string.

search

string with name or email address to match the key info.

keyserver

address of http keyserver. Default behavior is to try several commonly used servers (MIT, Ubuntu, GnuPG, Surfnet)

secret

set to TRUE to list/export/delete private (secret) keys

See Also

Other gpg: gpg_encrypt(), gpg_keygen(), gpg_sign()

Examples

## Not run: 
# Submit key to a specific key server.
gpg_send("87CC261267801A17", "https://keys.openpgp.org")
# Submit key to many key servers.
gpg_send("87CC261267801A17")

## End(Not run)

gpg documentation built on May 31, 2023, 9:21 p.m.