Node.js - HTTPS server uchun SSL sertifikatini ish vaqtida dinamik ravishda o'zgartiring

node da HTTPS proksi-serverini qurmoqdamiz. Asosan men odamlarga DNS CNAME taxallusini mening proksi mashinamga (joker DNS DNS o'rnatilgan) ega bo'lishiga ruxsat beraman va mening ilovaga (AWS Elastic Load Balancer kabi) SSL sertifikatini import qilish uchun import ga ruxsat beraman CNAME hostname har bir so'rov bo'yicha mijoz tomonidan himoyalangan va tan olingan.

Hozir men proksi-serverda ishlayapman va mijoz bilan SSL imzosini olishdan oldin to'g'ri sertifikatni dinamik ravishda yuklab olish uchun yo'l topishga harakat qilaman. Ish oqimi:

  1. A new request is received by the server
  2. Get the hostname requested by the client (that is the DNS CNAME alias set by the user)
  3. Load the right certificate belonging to that hostname
  4. Use the loaded certificate in the current request (need help here)
  5. Handshake (with the loaded certificate - which varies from request to request)

Buning bir yo'li bormi?

2
NodeJS Uzbekistan
NodeJS Uzbekistan
152 ishtirokchilar

Guruh NodeJS bo'yicha muloqot qilish uchun ochilgan. Sizni qiziqtirsa: @nodejs_uz @react_uz @angular_uz @yiiframework_uz @js_uzb @typescript_uzb @vuejs_uz @ngTashkent @laravel_uz @uzdevgroup Ish o'rinlari @UzDev_jobs