Hi, Nikos Mavrogiannopoulos <n...@gnutls.org> skribis:
> On 12/09/2012 03:11 PM, Ludovic Courtès wrote: > >> Hi, >> >> I have a public key produced by ‘openssl rsa -in key.sec -pubout > key.pub’, >> which looks like this: >> >> -----BEGIN PUBLIC KEY----- >> MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtnCdEo5fdYC/mjJLxjDK >> J/COk6ItJmY0x2Tvgg0o28/RZSkSa8OrbZTE5YEZVq3o5Nj26aPJZeF916reV8kc >> e+84/DNjP8HNGyZjnbxYgwSkDYYp15m0s+6Xt0j4dRqy+SMYxCqfg8AEhjgo1KWI >> /m2ThBfvlBZvwhmMZBJRO2LM7l1G6c5k4TDNaNjjzCYk/kA83xxmh06aX7HUtrA0 >> LZU4wQr8OORAYDz17MY6Ls463kpCm8Yofcs6C8N90vXha3SCbjF6HyJ0mWFiGYAb >> S0sT1aqJqFIEeZEsrE1M5XTRaNN58sufQGnVqPM5ZZG8O/TPST5UmXP4uFrJ8ZYe >> qwIDAQAB >> -----END PUBLIC KEY----- [...] > This looks like a PKCS #8 key so you may want to try the pkcs8 > functions. If you have a recent gnutls version you may try > gnutls_x509_privkey_import2() which tries several formats. Given that the above is a public key (or X.509 “certificate”?), isn’t ‘gnutls_x509_crt_import’ supposed to be able to import it? How does it differ from ‘gnutls_pcert_import_x509_raw’? Thanks, Ludo’. _______________________________________________ Help-gnutls mailing list Help-gnutls@gnu.org https://lists.gnu.org/mailman/listinfo/help-gnutls