Renew consul certificates
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
* NixOS
|
* NixOS
|
||||||
** [[file:docs/install.org][Installing]]
|
** [[file:docs/install.org][Installing]]
|
||||||
** Rebuilding
|
*** Rebuilding
|
||||||
#+BEGIN_SRC bash
|
#+BEGIN_SRC bash
|
||||||
sudo nixos-rebuild switch --impure --flake ".#${HOST}"
|
sudo nixos-rebuild switch --impure --flake ".#${HOST}"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#+title: Consul
|
#+title: Consul
|
||||||
* Server setup
|
* Server setup
|
||||||
** Create a server keypair
|
** Create a server keypair <<create_keypair>>
|
||||||
Decrypt the CA (from the agenix secrets)
|
Decrypt the CA (from the agenix secrets)
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
agenix -i ~/.ssh/id_reykjavik -d consul.d/consul-agent-ca.pem.age > ~/tmp/consul-agent-ca.pem
|
agenix -i ~/.ssh/id_reykjavik -d consul.d/consul-agent-ca.pem.age > ~/tmp/consul-agent-ca.pem
|
||||||
@@ -78,3 +78,10 @@ JSON config:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
* Renew expired certificates
|
||||||
|
** Find the expired certificate
|
||||||
|
#+begin_src
|
||||||
|
openssl x509 -in /etc/consul.d/certs/samfelag-server-consul.pem -enddate -noout
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
Follow the steps described in [[create_keypair][Create a server keypair]].
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user