diff --git a/content/blog/install-openwrt-raspberry-pi.md b/content/blog/install-openwrt-raspberry-pi.md index cf79d8f..3c456c8 100644 --- a/content/blog/install-openwrt-raspberry-pi.md +++ b/content/blog/install-openwrt-raspberry-pi.md @@ -292,7 +292,7 @@ ssh-keygen -N "" And copy it to **/etc/dropbear/authorized_keys**. ```sh -ssh-keygen -y | ssh root@192.168.2.2 tee /etc/dropbear/authorized_keys +ssh-keygen -y -f ~/.ssh/id_rsa | ssh root@192.168.2.2 tee /etc/dropbear/authorized_keys ``` Copy it also to your user account. diff --git a/content/blog/nginx-with-tls-on-openwrt.md b/content/blog/nginx-with-tls-on-openwrt.md index e6e5864..4d110d5 100644 --- a/content/blog/nginx-with-tls-on-openwrt.md +++ b/content/blog/nginx-with-tls-on-openwrt.md @@ -46,6 +46,8 @@ Fetch the existing package feed. scripts/feeds update -a ``` +## Compile nginx with TLS + Rename the **nginx** feed to **nginx-tls** so that our rebuilt package does not mix with the existing OpenWRT packages. ```sh @@ -115,7 +117,7 @@ bin/packages/aarch64_cortex-a53/packages/libpcre_8.41-2_aarch64_cortex-a53.ipk bin/packages/aarch64_cortex-a53/packages/nginx-tls_1.12.2-1_aarch64_cortex-a53.ipk ``` -## Install nginx +## Create a local opkg repository Create a directory on your Raspberry PI that will be used as an opkg repository. @@ -144,6 +146,8 @@ Copy the public key that signed the packages on your OpenWRT system. scp key-build.pub root@raspberry-pi.example.test:/etc/opkg/keys/$(staging_dir/host/bin/usign -F -p key-build.pub) ``` +## Install nginx + Install *nginx-tls* on your device. ```sh