{"id":942,"date":"2016-02-29T16:58:28","date_gmt":"2016-02-29T15:58:28","guid":{"rendered":"https:\/\/bergs.biz\/blog\/?p=942"},"modified":"2016-02-29T16:58:28","modified_gmt":"2016-02-29T15:58:28","slug":"uhttpd-with-a-certificate-chain","status":"publish","type":"post","link":"https:\/\/bergs.biz\/blog\/2016\/02\/29\/uhttpd-with-a-certificate-chain\/","title":{"rendered":"uhttpd with a certificate chain"},"content":{"rendered":"<p>To secure access to my router I wanted to use SSL encryption to access LuCi, so I obtained a certificate issued by a well-known CA. The server certificate was not issued directly off the CA, but there was a certificate chain in between.<\/p>\n<p>Using a certificate chain with OpenWrt&#8217;s uhttpd is really easy, although as of today this is not yet even documented to be possible on the <a href=\"https:\/\/wiki.openwrt.org\/doc\/uci\/uhttpd\" target=\"_blank\">OpenWrt web site<\/a>.<\/p>\n<p>I&#8217;m using uhttpd_2015-11-08 from a trunk build (r48648) of &#8220;Designated Driver&#8221;, and certificate chains can be used here without problems.<\/p>\n<p>I didn&#8217;t even have to convert from PEM to DER, I just concatenated the server cert and intermediate certs into a single file:<\/p>\n<div class=\"codebox\">\n<pre><code>cat \/root\/server.crt \/root\/1_root_bundle_1.crt \/root\/1_root_bundle_2.crt &gt;uhttpd.crt<\/code><\/pre>\n<\/div>\n<p>Hope this helps. If it does please leave a message, thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article explains how to use uhttpd with a certificate chain.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,122,84,134],"tags":[83],"class_list":["post-942","post","type-post","status-publish","format-standard","hentry","category-communications","category-english","category-networking-computers","category-routers","tag-openwrt"],"_links":{"self":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/comments?post=942"}],"version-history":[{"count":2,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/942\/revisions"}],"predecessor-version":[{"id":944,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/posts\/942\/revisions\/944"}],"wp:attachment":[{"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/media?parent=942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/categories?post=942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bergs.biz\/blog\/wp-json\/wp\/v2\/tags?post=942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}