воскресенье, 12 мая 2019 г.

Обновление сертификата http на Windows

На powershell:

Import-Module pkiclient
Import-PfxCertificate <my_cert.pfx> -CertStoreLocation "Cert:\LocalMachine\My" -Password (ConvertTo-SecureString <PasswordToPfx> -AsPlainText -Force)
netsh http show ssl #этой командой смотрим все доступные службы
#и выбираем адрес и id для следующей команды
netsh http update sslcert ipport=<ip_addr>:<port> certhash=<cert_hash> appid=<app_id>