Skip to content

Instantly share code, notes, and snippets.

@ukor
Last active October 1, 2024 08:37
Show Gist options
  • Select an option

  • Save ukor/e594c65997204b25b44b3163ccfddda1 to your computer and use it in GitHub Desktop.

Select an option

Save ukor/e594c65997204b25b44b3163ccfddda1 to your computer and use it in GitHub Desktop.
mkcert fullchain certificate
- create cert
```
mkcreate localhost 127.0.0.1 ::1
```
- Create fullchain cert
See - https://github.com/FiloSottile/mkcert/issues/214
```sh
# create chain file
cat localhost.pem > chain.pem
cat "$(mkcert -CAROOT)/rootCA.pem" >> chain.pem
# create fullchain file
$ cat localhost.pem > fullchain.pem
$ cat chain.pem >> fullchain.pem
```
See - https://github.com/FiloSottile/mkcert/issues/214
- for node js
run the code below before starting the application
```
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment