We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90ac14 commit 4d0d2b1Copy full SHA for 4d0d2b1
1 file changed
docs/Reference/TypeScript.md
@@ -862,9 +862,14 @@ a more detailed http server walkthrough.
862
import path from 'path'
863
import fastify from 'fastify'
864
```
865
-2. Follow the steps in this official [Node.js https server
866
- guide](https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/)
867
- to create the `key.pem` and `cert.pem` files
+2. Follow the following steps before setting up the Fastify https server
+for create the `key.pem` and `cert.pem` files, as follows:
+```sh
868
+openssl genrsa -out key.pem
869
+openssl req -new -key key.pem -out csr.pem
870
+openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
871
+rm csr.pem
872
+```
873
3. Instantiate a Fastify https server and add a route:
874
```typescript
875
const server = fastify({
0 commit comments