You can use PKCS12.

Using libeay you can create:

PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey, X509 *cert,
    STACK_OF(X509) *ca, int nid_key, int nid_cert, int iter,
       int mac_iter, int keytype);

save:

int i2d_PKCS12_fp(FILE *fp, PKCS12 *p12);


read:

PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12);

parse:

int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509
**cert,
   STACK_OF(X509) **ca);


Francesco Petruzzi

[EMAIL PROTECTED]

--------
The information contained in this electronic message and any attachments
(the "Message") is intended for one or more specific individuals or
entities, and may be confidential, proprietary, privileged or otherwise
protected by law. If you are not the intended recipient, please notify the
sender immediately, delete this Message and do not disclose, distribute, or
copy it to any third party or otherwise use this Message. Electronic
messages are not secure or error free and can contain viruses or may be
delayed, and the sender is not liable for any of these occurrences. The
sender reserves the right to monitor, record and retain electronic messages.
--------
Le informazioni contenute in questo messaggio e gli eventuali allegati (il
"Messaggio") si intendono inviate a uno o pi� specifici destinatari. Il
contenuto del Messaggio pu� essere confidenziale, riservato e comunque
protetto dalla legge applicabile. Se non siete i destinatari del Messaggio,
siete pregati di informare immediatamente il mittente, cancellare questo
Messaggio, non rivelarlo, non distribuirlo ne' inoltrarlo a terzi, non
copiarlo n� farne alcun uso. I messaggi di posta elettronica non sono sicuri
e sono soggetti ad alterazioni, possono essere trasmettitori di Virus
informatici o soggetti a ritardi nella distribuzione. Il mittente del
Messaggio non pu� essere in alcun modo considerato responsabile per queste
evenienze. Il mittente si riserva il diritto di archiviare, ritenere e
controllare i messaggi di posta elettronica.

----- Original Message ----- 
From: "Hellan.Kim KHE" <[EMAIL PROTECTED]>
To: "OpenSSL Users" <[EMAIL PROTECTED]>
Sent: Tuesday, March 23, 2004 4:35 PM
Subject: Simpel keystore for use in Windows?


I need a simpel keystore, maybe containing a users private key, users
certificate and 4-5 public certificates.
I'm looking for some standard format for saving these keys/certificates to a
single password protected file.
At the moment I need it for a Windows environment, but I don't want to use
Windows/CAPI keystore, since the application might move to a Java platform
at some point in time.
I was looking for something like PKCS#12. I don't know much about PKCS#12,
but I don't think it can handle what I need?
Any ideas on how to approach this problem appreciated!
Thanks,
Kim Hellan




___________________________________________________________________
www.kmd.dk   www.kundenet.kmd.dk   www.eboks.dk   www.civitas.dk
www.netborger.dk

Hvis du har modtaget denne mail ved en fejl vil jeg gerne, at du informerer
mig og sletter den.
KMD skaber it-services, der fremmer effektivitet hos det offentlige,
erhvervslivet og borgerne.

If you received this e-mail by mistake, please notify me and delete it.
Thank you.
Our mission is to enhance the efficiency of the public sector and improve
its service of the general public.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to