Skip to content

Instantly share code, notes, and snippets.

@ar45
Created December 20, 2019 16:33
Show Gist options
  • Save ar45/166b01ea33da606c0a841e2ca16a9c2b to your computer and use it in GitHub Desktop.
Save ar45/166b01ea33da606c0a841e2ca16a9c2b to your computer and use it in GitHub Desktop.
Ubiquiti Edge Router - New SSL Certificate
openssl req -sha256 -newkey rsa:2048 -nodes -out server.csr -keyout server.key -subj "/C=US/ST=Washington/L=Seattle/O=My Company LLC/OU=Network Ops/CN=ubiquityedge.local"
openssl x509 -req -in server.csr -signkey server.key -out server.crt
cat server.crt server.key >/etc/lighttpd/server.pem
kill -SIGINT $(cat /var/run/lighttpd.pid)
/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment