Last active
October 1, 2024 08:37
-
-
Save ukor/e594c65997204b25b44b3163ccfddda1 to your computer and use it in GitHub Desktop.
mkcert fullchain certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 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