[Help-gnutls] Public key export

Sylvain Beucler beuc at beuc.net
Thu Dec 20 16:28:02 CET 2007


Hi,

I'm using Authentic (http://authentic.labs.libre-entreprise.org/)
which asks the user to generate a private key and send in to public
counterpart.


I know how to do it with OpenSSL:

$ openssl rsa -pubout -in sp-priv.pem
writing RSA key
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDcMulh/Ul0MRYjmeA5xfA3Q75Z
MNqh2EqT2iP6vHXQ/DJpSsmBPZCoj0+T//IXWh210FZjQbSf7jVCmHU0dSted26z
HvciHPE3caUxDZWcWQBSeLrDTnUSHDyYWL4e4YnrXjN5ieM8PEUIel/mMNCpvvxx
689fUMrkZXjP/9JxzwIDAQAB
-----END PUBLIC KEY-----

but I'm willing to switch to GnuTLS :)


Is there a way to do it with GnuTLS? I didn't find a way to do so with
certtool.

Thanks,

-- 
Sylvain





More information about the Gnutls-help mailing list