---
title: "Discussion on \"How to set up local SSL with Next.js\" | Hashnode"
description: "Discussion on \"How to set up local SSL with Next.js\". Summary\nThis guide will teach you a cross-platform solution on how to add local SSL in a Next.js project.\nThe name and file structure used here is not mandatory. You can name files or reorganize the folder structure however you see fit.\nBefore we sta..."
url: "https://hashnode.com/posts/how-to-set-up-local-ssl-with-nextjs/6136e886766bb761a23813ca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to set up local SSL with Next.js](https://waltergalvao.dev/how-to-set-up-local-ssl-with-nextjs?utm_source=hashnode&utm_medium=feed)

Summary This guide will teach you a cross-platform solution on how to add local SSL in a Next.js project. The name and file structure used here is not mandatory. You can name files or reorganize the folder structure however you see fit. Before we sta...

Sep 7, 2021 · 3 min read · waltergalvao.dev  
Updated Jun 21, 2023  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#ssl](https://hashnode.com/tag/ssl)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Walter Galvão](https://hashnode.com/@wbgneto)

@wbgneto · Vancouver

  
[View profile](https://hashnode.com/@wbgneto)

Passionate about building products

Building https://huntless.dev and https://sweetr.dev

## Responses 5

Markdown supported · ⌘↵ to post

[Chinoso Jude](https://hashnode.com/@cvjude)

[Sep 25, 2023](https://hashnode.com/posts/how-to-set-up-local-ssl-with-nextjs/6136e886766bb761a23813ca/comment/65114d43354de146648919a5)

Thank you so much. This really helped

[Victor Barreto](https://hashnode.com/@victorbarreto)

[May 18, 2023](https://hashnode.com/posts/how-to-set-up-local-ssl-with-nextjs/6136e886766bb761a23813ca/comment/646682667bd6d2e2dc8723d6)

Tem como usar isso para produção? Se não, como ficaria para produção?

[Bibak Roy](https://hashnode.com/@bibakroy)

[May 18, 2022](https://hashnode.com/posts/how-to-set-up-local-ssl-with-nextjs/6136e886766bb761a23813ca/comment/6284ed747b02ca162edac1eb)

I got an error...

cat: ./certs/.capath: No such file or directory

[Tromgy](https://hashnode.com/@Tromgy)

[Dec 16, 2021](https://hashnode.com/posts/how-to-set-up-local-ssl-with-nextjs/6136e886766bb761a23813ca/comment/61bab3841fd80e4104704983)

Very nice! Thank you. Amazingly the certificate is already trusted in the browser, and I don't need to jump through the hoops to access the app.

[Thiago Lima](https://hashnode.com/@thiagoaslima)

[Sep 7, 2021](https://hashnode.com/posts/how-to-set-up-local-ssl-with-nextjs/6136e886766bb761a23813ca/comment/613787748b7ef1704839efab)

Eu acho q eu já vi isso, só não lembro onde... 😂 Sensacional!

[Walter Galvão](https://hashnode.com/@wbgneto)

[Sep 8, 2021](https://hashnode.com/posts/how-to-set-up-local-ssl-with-nextjs/6136e886766bb761a23813ca/comment/613787748b7ef1704839efab#reply-6138264d83248670799c001b)

onde será 🤔 hahaha

foi um sofrimento resolver o b.o das imagens, não tinha um tutorial completo :\\ espero salvar o sofrimento de alguém haha
