Make SSL Connection with OpenSSL

Just starting out? Need help? Post your questions and find answers here.
dman
User
User
Posts: 48
Joined: Thu Oct 01, 2009 2:10 pm

Re: Make SSL Connection with OpenSSL

Post by dman »

You know, if it's just file transfers, you could use an existing SFTP client or setup a basic system using PHP to save all the
hassle?
PureBasic
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: Make SSL Connection with OpenSSL

Post by RichAlgeni »

Not a problem, sorry for my response, yesterday was just one of those days! Actually through this morning until about 5 AM, when I finally finished up!

Anyway, the best thing to do would be to add console PrintN()'s to your code, as many as you need. Use these to tell you exactly where the program is, and the values of the data as you call the SLL procedures.

You don't really have to understand SLL at this point, just think of it as a different form of socket communication.

What I also might do is to forgo the 'include' for now, and just copy the include right into your parent code. Just put a comment string above and below, so you can remove it when done.

Run the code, then paste the command window results back here, so I can see the problem.

Rich
Barbarossa
User
User
Posts: 47
Joined: Fri Oct 12, 2012 8:50 am

Re: Make SSL Connection with OpenSSL

Post by Barbarossa »

RichAlgeni,

We all get days like that :wink:

After some more fiddling around with it I got it to work!

I told the portal builders to gradually build up the security level. First from HTTP, dan to SSL (HTTPS) and finally to SSL with server/client certificates.
We are now at step 2 and it works. I have yet some things to add and then we are going to try with the certificates.

When everything is in place I will try to post an out-of-the-box working version of your code with my additions. I reckon it will be a good addition to the forum since there is not much to find about this subject here. At least until Fred releases his own HTTPS Library and enhanced his HTTP (only 6 commands!) Library :)

But your code is really good. It was the foundation I needed to get the job done.

Thanks again (also to all others who contributed)

John
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: Make SSL Connection with OpenSSL

Post by RichAlgeni »

Excellent! Glad to hear that!!

Please, by all means post your code! It's how we ALL learn!

Rich

P.S. After I get IIS Filter working (insert prayer here!), I plan on tackling OpenSSL. That's not to say I have a problem with Cryptlib, they've been a lifesaver! IMHO, Google, Microsoft, Apple, HP, Oracle, IBM and so many other tech companies who've taken so much from all of us, should fund a cross-platform, next generation, EASY TO USE, FREE, secure network communication system that we call can use and trust!
Post Reply