Is it possible to construct a GPG Certificate from an existing RSA key pair

Melvin Carvalho melvincarvalho at
Sat Oct 6 16:22:20 CEST 2012

On 6 October 2012 16:15, Hauke Laging <mailinglisten at> wrote:

> Am Sa 06.10.2012, 15:53:25 schrieb Melvin Carvalho:
> > Is it possible to construct a GPG 'Certificate' from an existing RSA key
> > pair?
> >
> > I've got some 2048 RSA keys I'd like to reuse, is there any way I can use
> > them to make everything I need for GPG?
> How do you have these key pairs? Are they part of a GnuPG keyring? What is
> missing?

Long story but I have them in various forms

- as an exponent / modulus
- as PEM
- as DER
- as .p12
- as id_rsa (ssh)

I originally extracted the key pair from my GPG key->.p12 using some java
code below:

If there's any way it's theoretically possible to try and do the reverse
and reconstruct some of the GPG from the .p12 I'd be very grateful to know.

> Hauke
> --
>> PGP: D44C 6A5B 71B0 427C CED3 025C BD7D 6D27 ECCB 5814
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20121006/ed23696a/attachment.htm>

More information about the Gnupg-users mailing list