Skip to main content

Generowanie certa dla IIS z WIN CA z poziomu powershell

Tworzymy plik txt z odpowiednimi wpisami, tak zwany response file, 

[Version] 
Signature="$Windows NT$" 
[NewRequest] 
Subject = "CN=*.domain.local, OU=NazwaDziału, O=NazwaFirmy, L=Miejscowość, S=Województwo, C=PL" 
KeySpec = 1 
KeyLength = 2048 
Exportable = TRUE 
MachineKeySet = TRUE 
SMIME = FALSE 
PrivateKeyArchive = FALSE 
UserProtected = FALSE 
UseExistingKeySet = FALSE 
ProviderName = "Microsoft RSA SChannel Cryptographic Provider" 
ProviderType = 12 
RequestType = PKCS10 
KeyUsage = 0xa0 
[EnhancedKeyUsageExtension] 
OID = 1.3.6.1.5.5.7.3.1 ; OID dla Server Authentication 
[Extensions] 
2.5.29.17 = "{text}" 

_continue_ = "dns=*.nazwa.domeny&" 

[RequestAttributes] 

CertificateTemplate = "TemplateIISzCA"

Generujemy na CA z poziomu powershell

certreq -submit -attrib "CertificateTemplate:WebRamirentv3" test.txt response.cer cert.p7b response.ful 

image.png