> So, you want to know the format of the pgp/gpg public and private key
> files?
> You should be able to read the gpg source if nothing else, but I suspect
> that that format is specified somewhere. Sorry I do not know where.
>
> You could try
>
http://tools.ietf.org/html/rfc4880#section-5.5.3
> and see if that helps you.
>
Yes, but from this information it will be at least a week's work (for
me) to arrive at a syntactically correct private key and self signed
certificate. My hope was that somebody already solved that problem and
had a working perl script for the problem (like the perl scripts that
check the syntax of pgp keys, e.g. by Adam Back).
I do think that it is an important problem:
Use keys in PGP/GPG, that were generated with my own random number
generator and my own arithmetic (e.g. pari/gp) on an offline machine.
Somebody must have thought about it and solved it before.
Thanks for giving me your time.
Stefan