HOWTO
CERTIFICATES
INSTALL PRIVATE KEY AND CERTIFICATE ON AN OPENWRT ROUTER

Published: 20211107

Tested on:
Hardware: Raspberry Pi 3 Model B+
Firmware: OpenWRT 21.02.0 bcm27xx-bcm2709

-

In a default install of OpenWRT (from https://openwrt.org/) you can install your own private key and certificate by following these steps:

In this example the following values are assumed:

  1. AP means access point, but in this example AP is used for the device in question; whether it be an access point, a router, a network bridge, or just any type of device you wan't to install with OpenWRT.
  2. The FQDN of your access AP is ap1.example.com
  3. The IPv4 address of your AP is 192.0.2.1
  4. You have a local DNS server with the hostname: ap1.example.com pointing to the right IPv4 address: 192.0.2.1 (This is important to get a proper browser experience.)

Let's get on with the work:

If all works well, you should now be able to surf to https://ap1.example.com/ from your browser and the HTTPS certificate should be proper.