{
    "mode": "man",
    "parameter": "MIGRATE-PUBRING-FROM-CLASSIC-GPG",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/MIGRATE-PUBRING-FROM-CLASSIC-GPG/1/json",
    "generated": "2026-11-20T21:24:57Z",
    "synopsis": "migrate-pubring-from-classic-gpg [ GPGHOMEDIR | --default ]",
    "sections": {
        "NAME": {
            "content": "migrate-pubring-from-classic-gpg - Migrate a public keyring from \"classic\" to \"modern\" GnuPG\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "migrate-pubring-from-classic-gpg [ GPGHOMEDIR | --default ]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "migrate-pubring-from-classic-gpg migrates the public keyring in GnuPG home directory GPGHOME‐\nDIR from the \"classic\" keyring format (pubring.gpg) to the \"modern\" keybox format using GnuPG\nversions 2.1 or 2.2 (pubring.kbx).\n\nSpecifying  --default selects the standard GnuPG home directory (looking at $GNUPGHOME first,\nand falling back to ~/.gnupg if unset.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-h --help --usage",
                    "content": "",
                    "flag": "-h",
                    "long": "--usage"
                }
            ]
        },
        "DIAGNOSTICS": {
            "content": "The program sends quite a bit of text (perhaps too much) to stderr.\n\nDuring a migration, the tool backs up several pieces of data in a timestamped subdirectory of\nthe GPGHOMEDIR.\n\n",
            "subsections": []
        },
        "LIMITATIONS": {
            "content": "The keybox format rejects a number of OpenPGP certificates that the \"classic\" keyring  format\nused  to  accept.  These filters are defensive, since the certificates rejected are unsafe --\neither cryptographically unsound, or dangerously non-performant.  This means that some migra‐\ntions may produce warning messages about the migration being incomplete.  This is generally a\ngood thing!\n\nKnown limitations:\n",
            "subsections": [
                {
                    "name": "Flooded certificates",
                    "content": "Some OpenPGP certificates have been flooded with bogus certifications as part of  an  at‐\ntack  on  the  SKS  keyserver network (see https://tools.ietf.org/html/draft-dkg-openpgp-\nabuse-resistant-keystore-03#section-2.1).\n\nThe keybox format rejects import of any OpenPGP certificate  larger  than  5MiB.   As  of\nGnuPG  2.2.17,  if  gpg encounters such a flooded certificate will retry the import while\nstripping all third-party certifications (see \"self-sigs-only\" in gpg(1)).\n\nThe typical error message when migrating a keyring with a  flooded  certificate  will  be\nsomething like:\n\nerror writing keyring 'pubring.kbx': Provided object is too large\n"
                },
                {
                    "name": "OpenPGPv3 public keys (a.k.a. PGP-2 keys)",
                    "content": "Modern OpenPGP implementations use so-called \"OpenPGP v4\" public keys.  Older versions of\nthe      public      key     format     have     serious     known     problems.      See\nhttps://tools.ietf.org/html/rfc4880#section-5.5.2 for more details about and reasons  for\nv3 key deprecation.\n\nThe  keybox format skips v3 keys entirely during migration, and GnuPG will produce a mes‐\nsage like:\n\nskipped PGP-2 keys: 1\n\n"
                }
            ]
        },
        "ENVIRONMENT VARIABLES": {
            "content": "GNUPGHOME Selects the GnuPG home directory when set and --default is given.\n\nGPG The name of the gpg executable (defaults to gpg ).\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "gpg(1)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 2016 Daniel Kahn Gillmor for the Debian project. Please report bugs via the De‐\nbian BTS.\n\nApril 2016          MIGRATE-PUBRING-FROM-CLASSIC-GPG(1)",
            "subsections": []
        }
    },
    "summary": "migrate-pubring-from-classic-gpg - Migrate a public keyring from \"classic\" to \"modern\" GnuPG",
    "flags": [
        {
            "flag": "-h",
            "long": "--usage",
            "arg": null,
            "description": ""
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "gpg",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gpg/1/json"
        }
    ],
    "tldr": {
        "source": "not_found",
        "examples": []
    }
}