certs
Differences
This shows you the differences between two versions of the page.
certs [2024/12/16 05:51] – created johnsonjohn | certs [2024/12/16 05:54] (current) – johnsonjohn | ||
---|---|---|---|
Line 147: | Line 147: | ||
} | } | ||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | ====CertReq2023==== | ||
+ | < | ||
+ | # User CertReq in Powershell to create your cert using the SHA256 (SHA-256) signature algorithm and a 2048 bit key size (RSA) ## | ||
+ | |||
+ | <# | ||
+ | JWJ0215 2023 | ||
+ | #> | ||
+ | |||
+ | # This will create your inf and save to your personal folder | ||
+ | |||
+ | $Date = (Get-Date).ToString(' | ||
+ | |||
+ | $ReqFile = " | ||
+ | $InfFile = @" | ||
+ | [NewRequest]`r | ||
+ | Subject = " | ||
+ | KeySpec = 1 | ||
+ | KeyLength = 2048 | ||
+ | Exportable = TRUE`r | ||
+ | RequestType = CMC`r | ||
+ | "@ | ||
+ | Write-Host " | ||
+ | $FinalInfFile = " | ||
+ | New-Item $FinalInfFile -type file -value $InfFile | ||
+ | cmd /c " | ||
+ | Write-Host " " | ||
+ | Write-Host " | ||
+ | </ | ||
+ | ---- | ||
+ | |||
+ | =====Certs TEXT===== | ||
+ | |||
+ | ====Certs.txt==== | ||
+ | < | ||
+ | C: | ||
+ | |||
+ | changeit | ||
+ | |||
+ | Delete the Cert | ||
+ | keytool -delete -noprompt -alias ${thedacaresandcrt} -storepass ${changeit} | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ |
certs.txt · Last modified: 2024/12/16 05:54 by johnsonjohn