Jump to content
mgabriel

Certificat https pe site Nodejs

Recommended Posts

ngrock imi face el o redirectionare sau un tunel pe serverele lor si am un hostaname generat de ei. nu vreau asa.

 

Vreau ca aplicatia pe care o accesez acum prin http://hostname:3000 sa se poata accesa prin https://hostname:3000 adica sa-i pun cumva un certificat ssl free

Link to comment
Share on other sites

  • Moderators
1 hour ago, mgabriel said:

ngrock imi face el o redirectionare sau un tunel pe serverele lor si am un hostaname generat de ei. nu vreau asa.

 

Vreau ca aplicatia pe care o accesez acum prin http://hostname:3000 sa se poata accesa prin https://hostname:3000 adica sa-i pun cumva un certificat ssl free

Pai ai cumparat un hostname sau ai inregistrat macar unul free?

 

Ce trebuie sa faci e sa ai un hostname/domeniu si sa-i legi nameserverele la o zona DNS (CloudFlare de exemplu). Dupa, creezi o intrare A pe root / @ sa puncteze catre IP-ul tau de acasa, eventual sa adaugi si port forwarding din router catre calculatorul tau daca e nevoie.

 

Partea de certificat ori ti-o faci tu cu let's encrypt (sunt tutoriale multe pe net), ori folosesti de la serviciul DNS. Asta e ultimul pas.

 

EDIT: Daca vrei doar sa o testezi la tine in calculator si sa nu dai si la altii, modifici fisierul hosts de pe calculator (C:\Windows\system32\drivers\etc\hosts pentru Windows sau /etc/hosts pentru Linux/Mac) si punctezi cum vrei tu sa fie. In cazul asta pentru certificat va trebui sa ti-l generezi self signed si sa-l adaugi la exceptii.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...