How I can add extension with sequence value to CSR using openssl library?

2019-03-19 Thread work vlpl
I know how to add simple extension (oid + str), for example ``` nid = OBJ_create("1.2.3.4", "shortname", "long name"); ASN1_OCTET_STRING_set(os, "ext value", 9); ex = X509_EXTENSION_create_by_NID( NULL, nid, 0, os ); sk_X509_EXTENSION_push(exts, ex); ``` I want to learn how I can add extension wi

Problem with TLS handshake using OpenSSL library when data size exceeds buffer

2014-06-04 Thread Salem Al-Damluji
Hi there, I am working on a TLS server at present, but am having problems with handshaking on occasion. The setup: * My TLS server sets up a TLS context, and three BIOs; an SSL bio, and a BIO pair (application and socket). * A remote party attempts to start a TLS handshake wi

Re: How to implement DH algorithm using openSSL library?

2012-12-21 Thread Hemayamini Kurra
I also have a problem in sending the pub_key to peer. As I am using DH_generate_parameters to generate prime and generator and DH_generator_key for generating the public key , I have to send the prime, g and pub_key to the peer. Is there any function to do this?? Thanks in advance. Yamini. On Fr

Re: How to implement DH algorithm using openSSL library?

2012-12-21 Thread Hemayamini Kurra
Thanks prashant!! This helped alot!! On Thu, Dec 20, 2012 at 10:09 PM, Prashant Batra wrote: > I have this fucntion which I use to generate public-private key pair. > > - prime : depends on the dh group, you can find these values in DH rfc - > http://www.ietf.org/rfc/rfc3526.txt > > int32_t DHIn

Re: How to implement DH algorithm using openSSL library?

2012-12-20 Thread Prashant Batra
I have this fucntion which I use to generate public-private key pair. - prime : depends on the dh group, you can find these values in DH rfc - http://www.ietf.org/rfc/rfc3526.txt int32_t DHInterface::GeneratePublicPrivateKeyPair(uint8_t * pub_key, uint32_t * pub_key_length) { char *errbuf; d

How to implement DH algorithm using openSSL library?

2012-12-20 Thread Hemayamini Kurra
Hello!! I am trying to implement Diffe-Hellman Key exchange protocol between Client and server. I am using openSSL dh.h library for that. The problem is how to send the publickey generated by DH_generate_key() function to client/server. My idea is to get the shared secret which I can use for fur

Re: Memory leak while using OpenSSL library

2009-04-10 Thread Brad House
Commenting below. > For better clarification, I have attached the trace of Valgrind on the > Pastebin: > http://pastebin.com/f1e222abd > Here is the last lines > >1. ==3290== LEAK SUMMARY: >2. ==3290==definitely lost: 268 bytes in 1 blocks. >3. ==3290==indirectly lost: 66

Memory leak while using OpenSSL library

2009-04-09 Thread msp
Hi all I use libcsoap 1.1.0 library, to call some HTTP/HTTPS web services. libcsoap in turn uses OpenSSL for authenticating the secure sessions (HTTPS). Both HTTP and HTTPS web service are functioning well and I get the proper response in both cases. But I found many memory leaks when I try to ca

Need a sample code for decryption by DES alorithm using openssl library

2005-05-03 Thread Rajeev Aggarwal
I am encrypting a text file through Java program using DESede algorithm in CBC Mode and PCKS5 Padding. The key for encryption is 32 char long and i am using a single key. I need a sample code written in C language using openssl library ,decryption through Des algorithm in CBC mode. Could

Using OpenSSL library..

2001-09-13 Thread 김형우
Hello. I'm trying to make a Webserver. and fixing thttp daemon code to add SSL. i did simply used library like this.. to see SSL works.. // in initializing.. SSL_load_error_strings(); SSL_library_init(); RAND_add("kimhyoungwoo:1234",17,25); method = SSLv3_serve