We help IT Professionals succeed at work.

Secure Sockets for embedded Linux

Medium Priority
669 Views
Last Modified: 2013-11-21
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.
Comment
Watch Question

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?

Author

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.

http://www.openssl.org/docs/ssl/ssl.html

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.

http://www.stunnel.org/
Here is a helpful example that I was able to verify makes a functioning SSL connection using openssl:

http://www.len.ro/2007/06/openssl-example/

(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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.