File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575 -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" `
7676 -KeyExportPolicy Exportable `
7777 -KeyUsage DigitalSignature `
78- -ValidityPeriod Years `
79- -ValidityPeriodUnits 1 `
78+ -NotAfter (Get-Date).AddYears(1) `
8079 -CertStoreLocation "Cert:\CurrentUser\My"
8180
8281 Write-Host "✅ Test certificate created with thumbprint: $($cert.Thumbprint)"
Original file line number Diff line number Diff line change 8484 -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" `
8585 -KeyExportPolicy Exportable `
8686 -KeyUsage DigitalSignature `
87- -ValidityPeriod Years `
88- -ValidityPeriodUnits 3 `
87+ -NotAfter (Get-Date).AddYears(3) `
8988 -CertStoreLocation "Cert:\CurrentUser\My"
9089
9190 Write-Host "Certificate created with thumbprint: $($cert.Thumbprint)"
You can’t perform that action at this time.
0 commit comments