Note that there are some explanatory texts on larger screens.

plurals
  1. USRobert Prior
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. CODidn't finish this quickly enough but @TishaMoisha another solution is here http://ideone.com/f4I4I5
      singulars
    2. COThat might be because the .csr is not a certificate itself but a request for a signed certificate. For reference this is how you would generate a self-signed certificate and a corresponding rsa private key: `openssl req -x509 -newkey rsa:2048 -days 365 -out cacert.pem -outform PEM -subj /CN=test/ -nodes`. This will make two files cacert.pem, and privkey.pem which you could then do `openssl pkcs12 -export -out keycert.p12 -in cacert.pem -inkey privkey.pem` where you'll be prompted to choose a password for the pkcs file. Again not sure how to do it with the C libraries but hopefully this helps.
      singulars
    3. COI've only done this using the openssl command line tool so take this with a grain of salt but typically a pkcs#12 file contains a certificate and its corresponding private key. I believe the first step would to be generate a self signed certificate file and then combine it. To be consistent, all these files can be in .pem format. The code you provided is failing as it requires the signer's certificate so I assume it cannot handle self signing. So my suggestion is to look into self signing certificates before trying to generate a pkcs#12.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload