restapi 1.1.14

A secure-by-default rest api using hyper, tokio, bb8, kafka-threadpool, postgres, and prometheus for monitoring
Documentation
1
2
3
4
5
6
7
8
9
10
11
## How to build JWT private and public keys for the jsonwebtokens crate

The default algorithm the [jsonwebtoken crate](https://crates.io/crates/jsonwebtoken) is using is ``ECDSA`` with ``SHA-256``.

### Generate new ECDSA with SHA-256 public and private signing keys

```bash
openssl ecparam -name prime256v1 -genkey -out private-key.pem
openssl pkcs8 -topk8 -nocrypt -in private-key.pem -out private-key-pkcs8.pem
openssl ec -in private-key.pem -pubout -out public-key.pem
```