Skip to content

Commit

Permalink
OpenSSL examples set CA validity to 5 years
Browse files Browse the repository at this point in the history
  • Loading branch information
fed239 committed Sep 3, 2024
1 parent 3187d96 commit 2a762a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ And CA certificate shall be generated (if necessary, replace values under `-subj
with your values).

```bash
openssl req -new -x509 -days 365 -key ca.key -out ca.crt \
openssl req -new -x509 -days 1825 -key ca.key -out ca.crt \
-subj "/C=FI/ST=Uusimaa/L=Helsinki/O=ExampleOrganisation/CN=ca.example.com"
```

**NB:** In the example above the CA certificate validity period is set to 5 years, which
allows to rotate server and client certificates without the need to replace CA certificate itself.

### Server

Then server (broker) private key can be generated (again at the broker site).
Expand Down

0 comments on commit 2a762a0

Please sign in to comment.