uhttpd: support using OpenSSL for certificate generation
authorHannu Nyman <hannu.nyman@iki.fi>
Tue, 4 Oct 2016 14:38:31 +0000 (17:38 +0300)
committerJo-Philipp Wich <jo@mein.io>
Tue, 4 Oct 2016 22:48:19 +0000 (00:48 +0200)
commit3c4858eeb2bbb3107f87bb3be07d5c172c8e0ef9
tree9c2f926d516f078e760b8f0487b377639d305b9b
parent5d86dc791ef17b4a5733f836cbf82bb6647cd54a
uhttpd: support using OpenSSL for certificate generation

Support the usage of the OpenSSL command-line tool for generating
the SSL certificate for uhttpd. Traditionally 'px5g' based on
PolarSSL (or mbedTLS in LEDE), has been used for the creation.

uhttpd init script is enhanced by adding detection of an installed
openssl command-line binary (provided by 'openssl-util' package),
and if found, the tool is used for certificate generation.

Note: After this patch the script prefers to use the OpenSSL tool
if both it and px5g are installed.

This enables creating a truly OpenSSL-only version of LuCI
without dependency to PolarSSL/mbedTLS based px5g.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
package/network/services/uhttpd/Makefile
package/network/services/uhttpd/files/uhttpd.init