Skip to content

Instantly share code, notes, and snippets.

@zouzias
Last active April 23, 2017 17:25
Show Gist options
  • Save zouzias/1b8e93095be82e1a664827bf2056c9be to your computer and use it in GitHub Desktop.
Save zouzias/1b8e93095be82e1a664827bf2056c9be to your computer and use it in GitHub Desktop.
Migrate PGP key for sbt to new computer (spark-lucenerdd)
Install pgptools https://gpgtools.org
// Add this under ~/.sbt/0.13/plugins/sonatype.sbt
credentials += Credentials("Sonatype Nexus Repository Manager",
"oss.sonatype.org",
"zouzias",
"CEID PASSWORD HERE")
# List private keys
gpg2 --list-secret-keys
# To export the key
gpg2 --armor --export-secret-keys [email protected] > zouzias.asc
# To import the key, type
gpg --import 6D0A6CC5.asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment