Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't import gnupg keys due to ascii conversion?

I have a problem importing my gpg keys onto my macbook pro. This is the output:

pg: conversion from `utf-8' to `US-ASCII' failed: Illegal byte sequence gpg: key 5AE36741: public key "Micha\xc5\x82 Adamczyk <[email protected]>" imported 

After that key is imported but unusable by i.e. enigmail. Any ideas on how can i fix this?

like image 210
Michał Adamczyk Avatar asked Jun 07 '15 18:06

Michał Adamczyk


People also ask

What is GnuPG public key?

GnuPG uses public-key cryptography so that users may communicate securely. In a public-key system, each user has a pair of keys consisting of a private key and a public key. A user's private key is kept secret; it need never be revealed. The public key may be given to anyone with whom the user wants to communicate.


1 Answers

I had a similar problem and solved it by adding charset utf-8 to ~/.gnupg/gpg.conf.

like image 191
foolip Avatar answered Nov 04 '22 20:11

foolip