I try to create the pkcs12 file with:
[EMAIL PROTECTED] CA]$ openssl pkcs12 -export -in newcert.pem -inkey
private/cakey.pem -certfile cacert.pem -name Laser -out testcert.pem
Enter pass phrase for private/cakey.pem:
My pass phrase is corrent, but then I get:
No certificate matches private
Robert Kwiencien wrote:
I try to create the pkcs12 file with:
[EMAIL PROTECTED] CA]$ openssl pkcs12 -export -in newcert.pem -inkey
private/cakey.pem -certfile cacert.pem -name Laser -out testcert.pem
Enter pass phrase for private/cakey.pem:
My pass phrase is corrent, but then I get:
Hello Bob
The problem is that your private key does not match the certificate.
Though you specified the password correctly,the key specified using the -inkey optiondoes not match the certificate specified using the -in option.
I think you have specified the opposite values for -inand -certfile
I have a couple of questions about the records which are passed
between SSL sockets.
I understand application level messages are chunked, encrypted,
transmitted, dencrypted, and de-chunked.
At the point at which they are chunked, does any gathering take place?
In particular, is the tranmission
int main (void)
{
BIO *bmem, *b64;
BUF_MEM *bptr;
char message[] = Hello World \n;
int written = 0;
b64 = BIO_new(BIO_f_base64());
bmem = BIO_new(BIO_s_mem());
b64 = BIO_push(b64, bmem);
written = BIO_write(b64, message, strlen(message));
cout written endl;
BIO_get_mem_ptr(b64,
On Mon, Oct 17, 2005, Adam Jones wrote:
int main (void)
{
BIO *bmem, *b64;
BUF_MEM *bptr;
char message[] = Hello World \n;
int written = 0;
b64 = BIO_new(BIO_f_base64());
bmem = BIO_new(BIO_s_mem());
b64 = BIO_push(b64, bmem);
written = BIO_write(b64, message,
// Set up a base64 encoding BIO that writes to a memory BIO.
BIO* b64 = BIO_new(BIO_f_base64());
BIO* out = BIO_new(BIO_s_mem());
BIO_set_flags(out, BIO_CLOSE); // probably redundant
b64 = BIO_push(b64, out);
// Send the data.
// e.g.,
Thank you! It finally works...It appears you have to flush the BIO
before you get a pointer to it (as shown in your code below. Thanks!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rich Salz
Sent: Monday, October 17, 2005 12:41 PM
To: Adam Jones