This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Beaglebone lighttpd SSL

Hi,

I have a Beaglebone Rev. A6a with TI Sitara OS installed.

The OS installed is the last downloaded from the site AM335xSDK  07_00_00_00.

I want to connect to my beaglebone with SSL.

I have added to the file lighttpd.conf the following rows:

$SERVER["socket"] == "192.168.0.1:443" {                                        
 server.document-root = "/www/pages/"                                     
 ssl.engine = "enable"                      
 ssl.pemfile = "/etc/lighttpd/ssl/start_page/server.pem"                        
 }

When I restart the lighttpd I receive the following message:

root@am335x-evm:/etc# lighttpd -f lighttpd.conf
2014-03-25 09:25:34: (network.c.400) SSL: ssl requested but openssl support is not compiled in

Can anyone help me about this problem?

Many thanks in advance

  • Hi,

    The lighttpd package that comes with the AM335x SDK isn't compiled with SSL support:

    lighttpd -V

    The output is as follows:

    root@am335x-evm:~# lighttpd -V    
    lighttpd/1.4.31 - a light and fast webserver
    Build-Date: Jun 25 2013 16:50:19

    Event Handlers:

        + select (generic)
        + poll (Unix)
        - rt-signals (Linux 2.4+)
        + epoll (Linux 2.6)
        - /dev/poll (Solaris)
        - eventports (Solaris)
        - kqueue (FreeBSD)
        - libev (generic)

    Network handler:

        - linux-sendfile
        - freebsd-sendfile
        - solaris-sendfilev
        + writev
        + write
        - mmap support

    Features:

        + IPv6 support
        + zlib support
        - bzip2 support
        + crypt support
        - SSL Support
        + PCRE support
        - mySQL support
        - LDAP support
        - memcached support
        - FAM support
        - LUA support
        - xml support
        - SQLite support
        - GDBM support

    Please refer to the lighttpd wiki page for information on how to compile and use lighttpd with secure http.

    Best regards,
    Miroslav

  • Thanks!
    I am new with the system and the TI Sitara OS of the Beaglebone don't have the compiler installed.

    My question is:

    There is a way to cross-compile the lighttpd and SSL with CCS or it is necessary to install the compiler...

  • The cross-compiler for the SDK is located inside <SDK_dir>/linux-devkit/sysroots/i686-arago-linux/usr/bin.

    For Code Composer Studio questions, please visit the CCS forum: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81.aspx

    Best regards,
    Miroslav

  • Tanks for the information!

    I have selected the way to install the compiler in the beaglebone but i have the following problem?

    I have connected the Beaglebone to internet:

    root@am335x-evm:~# ping www.google.com -w 2
    PING www.google.com (173.194.70.99): 56 data bytes
    64 bytes from 173.194.70.99: seq=0 ttl=46 time=39.392 ms
    64 bytes from 173.194.70.99: seq=1 ttl=46 time=39.319 ms

    --- www.google.com ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max = 39.319/39.355/39.392 ms
    root@am335x-evm:~#

    then i have made the following commands:

    root@am335x-evm:~# opkg update
    root@am335x-evm:~# opkg install task-native-sdk
    Unknown package 'task-native-sdk'.
    Collected errors:
     * opkg_install_cmd: Cannot install package task-native-sdk.
    root@am335x-evm:~#

    How is the correct command for to install the gcc g++ compiler on the Beaglebone...?

  • I'm not sure if there are any working and updated package feeds for the Arago distribution. As far as I know the package feeds were removed some SDK releases ago.

    If you wish to use a native cross-compiler on the BeagleBone, then you will have to cross compile one yourself. If I remember correctly there were some forum threads on this subject.

    Best regards,
    Miroslav