RE: How to Limit the Cert chain to some sepcified number...

2007-05-05 Thread Usman Riaz
Thanks Goetz, much appreciated! Regards, Usman.> Date: Sat, 5 May 2007 13:59:04 +0200> From: [EMAIL PROTECTED]> CC: [EMAIL PROTECTED]> Subject: Re: How to Limit the Cert chain to some sepcified number...> To: [EMAIL PROTECTED]> > Hello Usman,> > --On Mai 05, 2007

How to Limit the Cert chain to some sepcified number...

2007-05-05 Thread Usman Riaz
Hi All, I want to issue my customers certificate signed by my certificate (a self-signed certificate). I want to limit the issued certificate to not to act as a CA. I generated the Root CA on command-line via openssl, and the customer certs are generated dynamically by php script (that al

RE: create a certificate

2007-04-19 Thread Usman Riaz
Looks like openssl is not in the path. I am not sure if there is a command-line version like linux of openssl for Windows (I guess you are on Windows). Normally, I use cygwin if i need to use openssl manually on windows. Regards, Usman. P:S. Btw, since your signature says you have access to php5.

Re: EVP Envelope & PKI Confusion...

2007-04-04 Thread Usman Riaz
074) (authenticated as goetz%shomitefo.de) id 4600B9930063B1EA for openssl-users@openssl.org; Tue, 3 Apr 2007 21:13:23 +0200Received:  from hal64.shomitefo.de ([192.168.1.91])by mail.shomitefo.de with esmtp (Exim 4.50)id 1HYoRW-0001EE-Bx; Tue, 03 Apr 2007 21:13:22 +0200>-BEGIN PGP SIGNED MESSA

RE: EVP Envelope & PKI Confusion...

2007-04-04 Thread Usman Riaz
Hi David,    Sorry to be rude, but your post just told me what I already know :), my lack of knowledge at security, but didn't help me a bit :( (not sure if the post was meant to be helpful). If you have spend the same amount of time writing *what* is wrong with my approch & why this shoul

Re: EVP Envelope & PKI Confusion...

2007-04-03 Thread Usman Riaz
OpenSSL Majordomo [version 1.94.5] X-List-Name: openssl-users Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 03 Apr 2007 15:52:23.0193 (UTC) FILETIME=[11B04890:01C77608] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Usman, Usman Riaz schrieb: > Thanks for the reply Jean-Claude,

Re: EVP Envelope & PKI Confusion...

2007-04-03 Thread Usman Riaz
.0.1]) (amavisd-new, port 10024)with ESMTP id 3FqWMKgyK+Bs; Tue, 3 Apr 2007 16:29:53 +0200 (CEST)Received:  from [192.168.0.98] (jean-claude.mxm [192.168.0.98])by gelas.mail.mxm (Postfix) with ESMTP id CD9E53C0AE;Tue, 3 Apr 2007 16:29:53 +0200 (CEST)>Usman Riaz wrote :>>>> I w

EVP Envelope & PKI Confusion...

2007-04-02 Thread Usman Riaz
Hi All,     I want to use PKI to encrypt some data and send it to the customer to be decrypted. With my limitied knowledge about PKI, the data can be encrypted using "private key" and then lateron that encrypted data could be decrypted with the "public key". While trying to find a way to achive

Re: Problem with EVP_Decode and line breaks in a X509 certificate

2007-03-15 Thread Usman Riaz
Strange, you posted a question instead of just copying, pasting "BEGIN...END" doing a recompile & rerun :D. Hope this helps, Regards, Usman. From:  Kaushalye Kapuruge <[EMAIL PROTECTED]>Reply-To:  openssl-users@openssl.orgTo:  openssl-users@openssl.orgSubject:  Re: Problem with EVP_Decode and

Stress Test

2007-02-15 Thread Usman Riaz
Hi*!   I was going through the discussion of some stress testing on this newsgroup,  I too am interested to know if there is a way to stress test with just having 2 computers to act as client :) and a single core-duo machine to run as a server. It's a ICOP/BIO_pair based SSL server that i want

RE: openssl with non-blocking comms

2007-01-30 Thread Usman Riaz
There is a exmple implemtation of usage of bio_pairs in ssltest.c file included with the ssl distribution. This should give you a good idea about how to use them properly. I too took that same implemetion from ssltest.c and wraped it in a class for my IOCP server without too much of a trouble. Reg

RE: TCP socket persistence and SSL Connect

2007-01-19 Thread Usman Riaz
One way to distinguish between the two is to use openSSL's BIO_pairs. The idea is to separate the SSL data en/decryption and the transport, so whatever goes down (the transport or the ssl) you can easily diffrentiate, and using BIO_pairs will let you use OpenSSL for the SSL part and then you ca

EVP_En/DecryptUpdate Question...

2006-11-14 Thread Usman Riaz
Hi All, I am trying to use OpenSSL to encrypt/decrypt some data for that I am using EVP_* API. I have a question about EVP_En/DecryptUpdate function. The second param of these functions is a pointer to a buffer where the En/Decrypted data will be copied by the function, but I wasn't ab

RE: SSL Error

2006-08-10 Thread Usman Riaz
sorry if I misunderstood you, but AFAIK, pure sockets API doesnt allow socket reuse as such. You have to have a new socket for every TCP connection, you can't "reuse" a socket. From: "Carlo Agopian" <[EMAIL PROTECTED]>Reply-To: openssl-users@openssl.orgTo: CC: "Carlo Agopian" <[EMAIL PROTECTED]>S

RE: Is configuration without sockets possible?

2006-02-13 Thread Usman Riaz
Hi! One way is to use bio_pairs. There is an example of bio_pair usage in 'ssl_test.c' file in the OpenSSL package. Hope this helps, Regards, Usman. From: Rutger Hofman <[EMAIL PROTECTED]> Reply-To: openssl-users@openssl.org To: openssl-users@openssl.org Subject: Is configuration without so

Re: Thread safety

2005-12-12 Thread Usman Riaz
Hello again and thank you for your replies I'll probably do it that way too. My threads are defined in another language and I'm pretty sure there is no way for my C module to be aware of which user thread it is currently running in... so I have nothing relevant to call CRYPTO_set_id_cal

RE: Thread safety

2005-12-12 Thread Usman Riaz
Hello, I'm trying to write an interface to OpenSSL using BIO pairs. For testing purposes, I'm doing communication locally in two seperate threads (one accessing a server context, the other a client context) so I figured I should worry about thread safety. I read in the OpenSSL documentation

RE: Client Dies and server SSL_state still SSL_ST_OK

2005-12-06 Thread Usman Riaz
Hello, This probably is more of a TCP problem then it is of OpenSSL. You might want to look at "SO_KEEPALIVE" option for the TCP socket. Hope this helps, Regards, Usman. Hello, I want to be able to handle unclean closing of an SSL socket. I have a client server applications and if the c

RE: A Few General OpenSSL Questions...

2005-12-01 Thread Usman Riaz
From: "Mark" <[EMAIL PROTECTED]> Reply-To: openssl-users@openssl.org To: openssl-users@openssl.org Subject: RE: A Few General OpenSSL Questions... Date: Thu, 1 Dec 2005 12:37:55 - Hello Usman, > > > an error. Can someone tell what do i need to do to make > the server > >connect > > > wit

Re: A Few General OpenSSL Questions...

2005-12-01 Thread Usman Riaz
On 11/30/05, Usman Riaz <[EMAIL PROTECTED]> wrote: > b. Secondly, I set the SSL version to 3 via "SSLv3_method" and wait for > client to connect. When the client connects (client is a FireFox browser, > with SSLv2,3 & TLSv1 enabled), on the server side when

A Few General OpenSSL Questions...

2005-11-30 Thread Usman Riaz
Hi*! I am implementing SSL support for my IOCP server using bio pairs. I would like if someone can throw some light on the following ... a. Do the bio pairs support full duplex data flow, like for example I get some data from client thats less then a complete SSL record, I write that inco

Re: A bio pairs question...

2005-11-29 Thread Usman Riaz
Thanks for the reply Alain, I have changed as you mentioned by placing a call to do a read on s_ssl_bio (for reading/writing UNEncrypted Data). Here is how that function looks like... bool CSSLSession::GetData(std::string& RecvData) { /*The RecvData WILL contain UN-ENCRYPTED-DATA tha

A bio pairs question...

2005-11-29 Thread Usman Riaz
Hi*! I am implementing IOCP server (for Windows OS) supporting SSL. For SSL part i am trying to use OpenSSL's bio pairs. I have looked at the example in ssltest.c. As i understand (please correct me if i am wrong) of the three bios (s_ssl_bio, server, server_io) that get created in "doit_bio

RE: C & C++ difference.

2005-07-01 Thread Usman Riaz
ALWAYS intialise your pointers :). TestSSL() { ctx = NULL; bio_err = NULL; } HTH, Usman. _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

RE: Hello

2004-11-02 Thread Usman Riaz
That's an easy one ;) How are you _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/ __ OpenSSL Project

SSL_connect returns SSL_ERROR_ZERO_RETURN for SOCKS4/5

2004-08-17 Thread Usman Riaz
Hi *! I have an application (OS MS Windows) that needs to speak https even if it is behind SOCKS4/5 proxy. I am using for OpenSSL for the SSL part & my code for using OpenSSL is taken from the file "\demos\ssl\cli.c". My problem is that when I connect via a SOCKS4/5 proxy (after doing the au