Re: Certificates format

Peter Gutmann <[email protected]> Sat, 26 Jan 2013 16:35:43 +1300
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
David Pierre <[email protected]> writes:

>How could I be sure my .p15 certificate will be recognize by an external user
>? Can I save my certificate in another format ? I tried to change extension
>in previous code, but i wonder it is not that simple.

A PKCS #15 file is a private-key file.  To exchange the certificate with
someone else, just export it using cryptExportCert() in whatever format you
like (CRYPT_CERTFORMAT_CERTIFICATE or CRYPT_CERTFORMAT_CERTCHAIN, or
CRYPT_CERTFORMAT_TEXT_CERTIFICATE or CRYPT_CERTFORMAT_TEXT_CERTCHAIN if you
want them in base64-encoded text format) and the other side will be able to
read it.

Peter.

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.