This is a multi-part message in MIME format.

------=_NextPart_000_004C_01C85CF1.010ECCC0
Content-Type: text/plain;
charset="us-ascii"
content-transfer-encoding: 7bit

Hi Friends,



I am facing a trivial problem with OpenSSL implementation on Windows
platform.

To avoid the compilation of source code, I am using the OpenSSL installation
for Windows platform, available from shininglightpro.com
(http://www.shininglightpro.com/downl..._8g.exe)(Win32
OpenSSL v0.9.8g).

I have created a sample server application which initializes the OpenSSL
library using API SSL_library_init().

Also I am using the following APIs to load the error string
(SSL_load_error_strings, ERR_load_BIO_strings, ERR_load_SSL_strings &
OpenSSL_add_all_algorithms).

Once this is done, I am opening the certificate file and private key file
using APIs SSL_CTX_use_certificate_file & SSL_CTX_use_PrivateKey_file. .The
certificate file and private key file PEM (base 64 encoded).

In addition to this, I have added the following .lib files in the project
setting of VC++ 6.0 (libeay32MD.lib libeay32MDd.lib libeay32MT.lib
libeay32MTd.lib ssleay32MD.lib ssleay32MDd.lib ssleay32MT.lib
ssleay32MTd.lib)

This is working absolutely fine with the sample server application.

The same code does not work i.e. opening the certificate files, when I try
to execute from a Windows NT Service (Ours is an application running as a
service and that service in turn acts as a TCP server which will open SSL
ports for communication with client)

The same set of APIs and certificates does not work
(SSL_CTX_use_certificate_file & SSL_CTX_use_PrivateKey_file) from within a
Windows NT service application).



Also, when I try to get the latest SSL error numbers using API
ERR_print_errors_fp, the entire application crashes.



I am looking out for any architectural issues with OpenSSL when working with
Windows NT service applications. If anyone has tried implementing OpenSSL in
a Windows NT service, any help in this regard is highly appreciated.



Thanks,

Parag




The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com


------=_NextPart_000_004C_01C85CF1.010ECCC0
Content-Type: text/html;
charset="us-ascii"
content-transfer-encoding: quoted-printable







Hi Friends,


=3D o ns =3D
"urn:schemas-microsoft-comfficeffice" />>


I am facing a trivial pro=
blem
with OpenSSL implementation on Windows platform.


To avoid the compilation=
of
source code, I am using the OpenSSL installation for Windows platform, avail=
able
from shininglightpro.com
(http://www.shininglightpro.com/downl..._8g.exe)(Win32 Open=
SSL
v0.9.8g).


I have created a sample s=
erver
application which initializes the OpenSSL library using API
SSL_library_init().


Also I am using the follo=
wing
APIs to load the error string (SSL_load_error_strings, ERR_load_BIO_strings,=

ERR_load_SSL_strings & OpenSSL_add_all_algorithms).


Once this is done, I am o=
pening
the certificate file and private key file using APIs
SSL_CTX_use_certificate_file & SSL_CTX_use_PrivateKey_file. style=3D"mso-bidi-font-weight: normal">.The certificate file and private key=
file
PEM (base 64 encoded).>>


style=3D"mso-bidi-font-weight: normal">In addition to this, I have added the=

following .lib files in the project setting of VC++ 6.0 (libeay32MD.lib
libeay32MDd.lib libeay32MT.lib libeay32MTd.lib ssleay32MD.lib ssleay32MDd.li=
b
ssleay32MT.lib ssleay32MTd.lib)>>


This is working absolutel=
y fine
with the sample server application.


The same code does not wo=
rk i.e.
opening the certificate files, when I try to execute from a Windows NT Servi=
ce
(Ours is an application running as a service and that service in turn acts a=
s a
TCP server which will open SSL ports for communication with client)


The same set of APIs and=

certificates does not work (SSL_CTX_use_certificate_file &
SSL_CTX_use_PrivateKey_file) from within a Windows NT service application).<=
/P>

>


Also, when I try to get t=
he
latest SSL error numbers using API ERR_print_errors_fp, the entire applicati=
on
crashes.


>


I am looking out for any=

architectural issues with OpenSSL when working with Windows NT service
applications. If anyone has tried implementing OpenSSL in a Windows NT servi=
ce,
any help in this regard is highly appreciated.


>


Thanks,


Parag


style=3D"MARGIN: 0in 0in 0pt">>

The information=
contained in this electronic message and any attachments to this message ar=
e intended for the exclusive use of the addressee(s) and may contain proprie=
tary, confidential or privileged information. If you are not the intended re=
cipient, you should not disseminate, distribute or copy this e-mail. Please=
notify the sender immediately and destroy all copies of this message and an=
y attachments.



WARNING: Computer viruses can be transmitted via email. The recipient sho=
uld check this email and any attachments for the presence of viruses. The co=
mpany accepts no liability for any damage caused by any virus transmitted by=
this email.



www.wipro.com




------=_NextPart_000_004C_01C85CF1.010ECCC0--
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org