SSL_write SSL_read hangs??? Need help.

2000-01-21 Thread Grebelsky, Konstantin
Hi, I am just beginning with SSL and for now I am trying to get client and server talking only this is not happening. The client and server code is provided below. No certification needed at this time. Any ideas what I am doing wrong? Kostia [EMAIL PROTECTED] Server: +++ /* SSL prel

Linking problem building 0.9.4 debug?

2000-01-25 Thread Grebelsky, Konstantin
I am trying to build a debug dlls using 32all.bat but getting linking problems below.. What is wrong? Does anybody know? Should I be using 32all.bat at all? If not what are the steps that are needed. For the regular build I am following the steps in install.w32 .\crypto\objects\obj_dat.h

NT Debug, or How to get the failure code and what it means?

2000-03-07 Thread Grebelsky, Konstantin
I have created my own certificate and a key. When I try to set certificate in if ((m_nErrorCode = SSL_CTX_use_certificate_file(m_pCtx, m_cerFilePath, SSL_FILETYPE_PEM)) <= 0) { //I am apparently getting an error } I get an error. I

verify certificate? s_client? DSA certificates self created

2000-03-07 Thread Grebelsky, Konstantin
Hi, I have created a DSA Certificate and a private key file following instructions However when I attempt to SSL_CTX_use_certificate_file the call fails. As of right now I am not able to figure out why, but I am trying to use s_client s_server to verify that the file I am trying to use as my certi

correction...DSA self certificate use_cert..file failure

2000-03-07 Thread Grebelsky, Konstantin
As previous message stated I created DSA certificate and priv.key file. Trying to run s_server with the certificate as follows and get into trouble below? Sorry, about previous message the file was possibly in a different directory. D:\openssl-0.9.5\out32dll>openssl OpenSSL> s_server -cert ./NosA

Re:Re: correction...DSA self certificate use_cert..file failure

2000-03-09 Thread Grebelsky, Konstantin
> What does this file NosAdminUnixCert.pem look like? That error suggests > the certificate is corrupted somehow. Here is the file... it looks exactly > as some other certificate files I have seen. But different as others... I > have generated it using instructions of course with the names of the

DSA certificate and cipher list setup?

2000-03-10 Thread Grebelsky, Konstantin
I have created certificate and priv key as follows: openssl.exe dsaparam 512 -out dsa512.pem openssl req -config req.cnf -x509 -newkey dsa:dsa512.pem -out DsaCa.pem When I do SSL_connect ... and on the server side SSL_accept the accept call fails on c=ssl3_choose_cipher(s,s->session->ciphe

RE: DSA certificate and cipher list setup?

2000-03-13 Thread Grebelsky, Konstantin
x, "EDH:DSS:DES:CBC3:SHA"); I am lost.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 10, 2000 6:47 PM To: Grebelsky, Konstantin; [EMAIL PROTECTED] Subject: Re: DSA certificate and cipher list setup? Grebelsky, Konstantin

RE: DSA certificate and cipher list setup? - GOT IT

2000-03-13 Thread Grebelsky, Konstantin
It was RAND_screen call that was missing! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 10, 2000 6:47 PM To: Grebelsky, Konstantin; [EMAIL PROTECTED] Subject: Re: DSA certificate and cipher list setup? Grebelsky, Konstantin <[EMAIL PROTEC

BIO_write call crashes...

2000-03-14 Thread Grebelsky, Konstantin
I have tried a number of things: X509_print_fp PEM_write_X509 PEM_write_DSAPrivateKey all of these crash when they get to fwrite in file_write in bss_file.c They crash when fwrite tries to lock the stream... Does anybody know why this is happening? All this of course inside my code all openssl s

RE: Problem with BIO functions in VC++ 6.0

2000-03-20 Thread Grebelsky, Konstantin
ECTED] Subject: Re: BIO_write call crashes... Grebelsky, Konstantin wrote: > > I have tried a number of things: > X509_print_fp > PEM_write_X509 > PEM_write_DSAPrivateKey > > all of these crash when they get to fwrite in file_write in bss_file.c > They crash when fwrite tries

openssl dlls exporting?

2000-03-22 Thread Grebelsky, Konstantin
Hi, I have a client and a server which use openssl lib to communicate. I am using my own certificates, DSA and server issues a certificates for its clients. I need to ship ssleay32.dll and libeay32.dll these may need to go outside US. I heard here and there that this is not legal? Is it? Where can

How to encrypt and sign a file?

2000-04-11 Thread Grebelsky, Konstantin
Is there a way and a sample to sign a file and then verify file's signature? __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List M

RE: How to encrypt and sign a file?

2000-04-12 Thread Grebelsky, Konstantin
I am trying to use sign.c example to sign a file with my own DSA certifiacate and private key file, and EVP_SignFinal (see below fails) with EVP_R_WRONG_PUBLIC_KEY_TYPE. Does this mean that files do not match or is something not set? I am pretty sure that those two files were created as a set and

RE: How to encrypt and sign a file?

2000-04-12 Thread Grebelsky, Konstantin
the file is from me... Also how can I encrypt the file before signing it? BTW I figured out why my EVP_SignFinal call was failing I was using the wrong method in EVP_SignInit. -Original Message- From: Grebelsky, Konstantin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 11, 2000 2:17 PM To