• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 653
  • Last Modified:

Secure Sockets for embedded Linux

I need to implement SSL in my embedded Linux box running NetOS. Can anyone point me in the right direction.

Free or cheap is good. Must be licensed to that it can be used in a commercial application.
  • 2
1 Solution
I have never done any embedded development, but I do understand the concept. Can you not use OpenSSL? If you're using if for HTTPS, what daemon or client do you need to add SSL capabilities to?
Chipkin_comAuthor Commented:
I am writing the client. I need the https service to log into a server,
I think the openssl libraries are your thing then.


I'm confused on what you mean by the https service has to log into a server, though. I would expect an HTTPS client to do the logging in. If the "service" is already written and you just need to at SSL capabilities to your protocol you may consider just implementing stunnel with OpenSSL.

Here is a helpful example that I was able to verify makes a functioning SSL connection using openssl:


(You might have to fix the text - including one closing brace that is inadvertently commented out due to the weird formatting).

Statically linking OpenSSL will easily add 1MB+ to the size of your executable, and alternately, linking to the libraries will take a few extra MB.  If you don't have that to spare, consider MatrixSSL (google it), an SSL implementation meant for embedded Linux devices that comes in two flavors - free (GNU) and commercial paid.  Not sure what the price of the paid version is, but they claim to only need something in the neighborhood of 100 KB depending on your needs and platform.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now