regarding PKCS12

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

regarding PKCS12

#YEO KAY HUI VINCENT#
Hi there,
   I am new to OpenSSL and even newer as a user of this mailing list. I hope I am posting on this user group correctly.
 
 Anyway here's my problem: I have generated 2 RSA private keys (one for signature and one for key exchange) in PEM format(in 2 separate files) and  2 certificates in PEM format(also  in 2 separate files). Previously i was able to to create another 2 pkcs12 files(containing one private key and one certificate each) with the given OpenSSL crypto API. However I am wondering if I can just create 1 PKCS12 file that encapsulates the 2 RSA private keys and the 2 Certificates. (i.e 1 PKCS12 file containing the 4 items)
 
As I observed, the pkcs12_creates() function takes in only one key and one certificate (plus the stack of related certs??). So is there a function that lets me create a pkcs12 file that incorporates both key exchange and singature private keys and certificates??
 
I the description of the problem does not sound absurd. =P Thanks
 
Vincent