How to generate certificate in PEM format in C/C++

2008-10-10 Thread Prateek Shah
Hello Dev Team, Currently we are generating certificates in PKCS12 format using the API PKCS12_create() but we need to generate certificates in PEM format but didn't find any alternative API by looking at pem.h in the source code. Can you please help us ? We are programming in C/C++. I am

X509_REQ_get_subject_name() and other macros

2008-10-10 Thread Larry Bugbee
Hi, I'm writing a ctypes wrapper to access libcrypto from Python using ctypes. A lot is working but when I go to extract the subject name from a CSR (REQ) so I can add it to the cert, No Joy. Extracting the subject name from a cert using X509_get_subject_name() works because it is a

problem with sect163k1 public key size

2008-10-10 Thread Bruno Vétel
Hello It seems that sect163k1 public keys can have two formats First : 000 02 ab 2e 87 30 ca 94 4b 9b 9a 1d 84 b4 8a 1b cb 020 79 c5 c6 52 e9 01 91 ef 3c 19 73 da e8 af 4b a4 040 40 21 b8 ce 42 b1 bf af 8c ef Second : 000 30 40 30 10 06 07 2a 86 48 ce 3d 02 01 06 05 2b 020

Re: help about sect163k1 public key size

2008-10-10 Thread Andrzej Chmielowiec
Hi, First format is in compressed form 30 2b 30 10 06 07 2a 86 48 ce 3d 02 01 06 05 2b 81 04 00 01 03 17 00 - (public key as bit string) 02 - (compressed format) 00 c6 2b 5c 20 84 e0 33 50 cd 27 1c 54 a7 7b 97 5e 10 ce 9d f1 - (x coordinate of EC point) Second

help about sect163k1 public key size

2008-10-10 Thread Bruno Vétel
Hello Ooops sorry for the noise I made a mistake the first format is this one 000 30 2b 30 10 06 07 2a 86 48 ce 3d 02 01 06 05 2b 020 81 04 00 01 03 17 00 02 00 c6 2b 5c 20 84 e0 33 040 50 cd 27 1c 54 a7 7b 97 5e 10 ce 9d f1 Second : 000 30 40 30 10 06 07 2a 86 48 ce 3d 02 01

Re: [openssl.org #1703] Bug report for DTLS

2008-10-10 Thread David Woodhouse via RT
On Fri, 2008-10-10 at 12:42 +0200, Lutz Jaenicke via RT wrote: I have applied the patch to 0.9.8-stable and adopted it to 0.9.9-dev. I am not very familiar with the DTLS implementation so hopefully I did not break it. Thanks. Sorry to be impatient. I've got myself onto a team tasked with

[openssl.org #1703] Bug report for DTLS

2008-10-10 Thread Lutz Jaenicke via RT
I have applied the patch to 0.9.8-stable and adopted it to 0.9.9-dev. I am not very familiar with the DTLS implementation so hopefully I did not break it. Best regards, Lutz __ OpenSSL Project

[openssl.org #1752] DTLS drops incoming packets when they are reordered.

2008-10-10 Thread Lutz Jaenicke via RT
[EMAIL PROTECTED] - Tue Oct 07 10:57:04 2008]: This patch to the 0.9.8 branch fixes two bugs with misordered incoming packets in DTLS, which are reported as RT #1752. Could you comment on the 0.9.9-dev branch as well? The patch to d1_pkt.c applies fine. The length object is gone from the