Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

https server using openssl

8 views
Skip to first unread message

Indtiny s

unread,
Oct 29, 2012, 12:49:29 PM10/29/12
to

 Hi,
I have CCM chiper suite in the openssl and for some other requirement I have write my own simple webserver... Can somebody help me to develop simple openssl based webserver ..

I just need to support the POST operation at my server side 
i.e , in my requirement , client will post the data to web server , here server should receive the data and provide the HTTP response as 201 to client .

How to start implementing this with the help of openssl ..?

Rgds
Indu



Andrey Koltsov

unread,
Oct 30, 2012, 7:08:14 AM10/30/12
to
Hi.

I think that you should write simple HTTP server first and add SSL
support to it afterwards.


Best regards,

Andrey Koltsov
software developer


29.10.2012 20:49, Indtiny s пишет:
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

Charles Mills

unread,
Oct 30, 2012, 7:40:50 AM10/30/12
to
Absolutely!

Charles

-----Original Message-----
From: owner-ope...@openssl.org
[mailto:owner-ope...@openssl.org] On Behalf Of Andrey Koltsov
Sent: Tuesday, October 30, 2012 4:08 AM
To: openss...@openssl.org
Cc: Indtiny s
Subject: Re: https server using openssl

Hi.

I think that you should write simple HTTP server first and add SSL support
to it afterwards.


Best regards,

Andrey Koltsov
software developer


29.10.2012 20:49, Indtiny s пишет:
>
> Hi,
> I have CCM chiper suite in the openssl and for some other requirement I
have write my own simple webserver... Can somebody help me to develop simple
openssl based webserver ..
>
> I just need to support the POST operation at my server side
> i.e , in my requirement , client will post the data to web server , here
server should receive the data and provide the HTTP response as 201 to
client .
>
> How to start implementing this with the help of openssl ..?

Indtiny s

unread,
Oct 31, 2012, 12:31:10 PM10/31/12
to
Hi,

Thanks for the suggestion , while browsing about openssl I came across this site http://www.rtfm.com/openssl-examples/

which has  code for server which is based on the  openssl .

Can I use that server code for my simple webserver application ..?

Rgds
Indra

Ted Byers

unread,
Oct 31, 2012, 1:20:10 PM10/31/12
to
I don't know how or if Boost's asio library interacts with openssl,
but if you want to develop your own server, you probably ought to
begin with Boost's asio library. If I where going to write my own
server, that is what I would do (if I were writing it in C++ rather
than Perl).

http://www.boost.org/doc/libs/1_51_0/doc/html/boost_asio.html

The site you referenced provides an example that is over a decade old.

The link I provide above it this year, with current examples for both
http servers and clients with and without using SSL. Being a Boost
C++ library, it provides a solid base on which to build. The license
basically lets you use all that code for whatever purpose you wish.
And, I am sure, once yu have studied it, and openssl, you'll be able
to extend it to use openssl if it does not presently use it, to add
capabilities that openssl provides that are not presently available in
asio (provided you have a good grasp of C++ templates and
inheritance).

Cheers

Ted

Indtiny s

unread,
Nov 1, 2012, 1:47:12 PM11/1/12
to
Hi,
Thanks for the information , actually I need to write simple webserver for the android (in the ndk level for some requirement) .
I have added some new CIPHER suite to the openssl   as per our requirement . now I need to write simple webeserver which uses that modified-openssl , hence I planned to use the  code which is there in the link(http://www.rtfm.com/openssl-examples/) compiled with new openssl  .. so now will it be okay to go with this code ..?

incase if it is not good  to use the above approach , then is boost library available for android  to use the Mr.Ted approach  ..?

Rgds
Indra 

Ted Byers

unread,
Nov 1, 2012, 2:54:52 PM11/1/12
to
On Thu, Nov 1, 2012 at 1:47 PM, Indtiny s <ind...@gmail.com> wrote:
> Hi,
> Thanks for the information , actually I need to write simple webserver for
> the android (in the ndk level for some requirement) .
> I have added some new CIPHER suite to the openssl as per our requirement .
> now I need to write simple webeserver which uses that modified-openssl ,
> hence I planned to use the code which is there in the
> link(http://www.rtfm.com/openssl-examples/) compiled with new openssl .. so
> now will it be okay to go with this code ..?
>
Bear in mind the caveats on that page. The code is ancient.

Look for copyright information - who owns the copy right for that
page/code, and what license did they apply. The anwsers you want,
regarding permission to use it are in that documentation, if it
exists. If the code is correctly perceived to be open source, then
you can do what you like with it. But, even if you can, that is not
the same thing as you should. Remember, the age of that code.
Revising it may be more trouble than it is worth.

> incase if it is not good to use the above approach , then is boost library
> available for android to use the Mr.Ted approach ..?
>
The boost library is a C++ library, and thus an be used on any
platform for which there is a standards compliant C++ compiler.
Therefore, if you have a C++ compiler for Android, then you can use
boost libraries. The short answer, is yes, there is a C++ compiler on
Android and thus you can use boost.

BTW: The boost asio library does use openssl for it's security
functionality. Therefore, it ought to be very easy for you to extend
to include your new cipher, or anything else that you may want.

Indtiny s

unread,
Nov 6, 2012, 9:59:24 AM11/6/12
to
Hi,

Thanks for detailed information , since I am not  very comfortable  with c/c++ , it is bit difficulty for me to  design and implement a  webserver  . 

Is there simple open source webserver (which uses the boost lib and has the option to include my modified openssl libs) for android ndk level ..?


Pls provide some good links .

rgds
Indra
0 new messages