Software

[howto iis] Certificato OpenSSL autofirmato compatibile con Chrome/Edge

Generando un certificato SSL autofirmato da IIS, questo non viene riconosciuto come attendibile da Chrome/Edge nonostante venga inserito all’interno dell’Autorità di Certificazione Radice Attendibile dell’archivio certificati di Windows. La causa è la mancata compilazione della sezione SAN del certificato (viene compilato solamente il COMMON NAME). Per ovviare, è possibile generare un certificato autofirmato con openssl e quindi caricarlo su IIS.

Per generare un certificato autofirmato eseguire il seguente comando:

openssl req -newkey rsa:2048 -x509 -nodes -keyout out.key -new -out out.crt -subj /CN=server-name.domain.local -reqexts SAN -extensions SAN -config <(cat /etc/ssl/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:server-name,DNS:server-name.domain.local')) -sha256 -days 3650

Il comando genera un certificato così compilato:

  • CN: server-name.domain.local
  • SAN: server-name, server-name.domain.local
  • Durata: 10 anni

e crea il file out.crt (il certificato) e out.key (la chiave di firma).

Il certificato così creato, per essere importato in IIS, va convertito nel formato PXF. Per farlo, è possibile usare il comando openssl in questo modo:

openssl pkcs12 -export -out out.pfx -inkey out.key -in out.crt

A questo punto, il file out.pfx potrà essere importato in IIS e poi assegnato ad uno o più siti su Binding. Lo stesso certificato può essere installato sull’archivio locale certificati autorità di certificazione radice attendibile dei client (manualmente o tramite GPO) per rendere il sito sicuro.

29/10/2021 How-To IIS

[teamsystem] Messaggio di errore "WebSGD non connesso"

[office 365] Outlook disconnesso con il messaggio "Password necessaria"

Giugno 2025
L M M G V S D
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Giu    

Categorie

  • Access
  • Asp
  • Cyberoam
  • Dell
  • ESX / vmWare
  • Exchange
  • Exchange 2007
  • How-To
  • IIS
  • iPhone
  • Linux
  • Mac
  • Office 365
  • Outlook
  • plesk
  • Sophos XG
  • SQL Server
  • TeamSystem
  • Tips
  • Trend Micro
  • Vb.NET
  • VB6
  • Windows 10
  • Windows 7
  • Windows SBS
  • Windows Server
  • Windows Vista
  • Windows XP
  • WSUS

How-To

  • Configure SMTP O365 Migration Using TLS 1.2 For SQL Database Mail
  • Debian anti-spam and anti-virus e-mail gateway
  • How to install Small Business Server 2003 in an existing Active Directory domain
  • Sophos XG Firewall and Firebox Branch Office VPN Integration Guide
  • Squid, SquidGard, NTLM Authentication con Samba 3.x su Debian Sarge
  • Troubleshoot high-CPU-usage issues in SQL Server

Utili

  • Chip Grafici per portatili – Benchmark
  • Il blog su Microsoft Access
  • Processori per portatili – Benchmark
  • Sophos Wireless: Wi-Fi Fundamentals
  • Zentyal – Linux Small Business Server

Meta

  • Accedi
  • Feed dei contenuti
  • Feed dei commenti
  • WordPress.org
Proudly powered by WordPress | Theme: Neblue by NEThemes.