-
Notifications
You must be signed in to change notification settings - Fork 1
/
Self-SignedCert.ps1
37 lines (37 loc) · 2.44 KB
/
Self-SignedCert.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#Self-SignedCert.ps1
#Create a self-signed certificate
New-SelfSignedCertificate -CertStoreLocation Cert:\CurrentUser\my -Subject "CN=Local Code Signing" -KeyAlgorithm RSA -keylength 2048 -provider "Microsoft Enhanced RSA and AES Cryptographic Provider" -KeyExportPolicy Exportable -KeyUsage DigitalSignature -Type CodeSigningCert
#Generates signature 0401B428D5122A243563F637A7426F745959484C
# SIG # Begin signature block
# MIIFdgYJKoZIhvcNAQcCoIIFZzCCBWMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU0BeZxWkA9zmcOnYtuAxvVrwj
# rNygggMOMIIDCjCCAfKgAwIBAgIQcnj8A8lHf75FK2sTlWzCoDANBgkqhkiG9w0B
# AQUFADAdMRswGQYDVQQDDBJMb2NhbCBDb2RlIFNpZ25pbmcwHhcNMjAwNzA4MTEy
# NzU3WhcNMjEwNzA4MTE0NzU3WjAdMRswGQYDVQQDDBJMb2NhbCBDb2RlIFNpZ25p
# bmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC/KUuqZTdLpIYTwR+1
# fFr6b9NvrneMnjTedls8OomKguAO0Pd8x4EUC5Pjd0nc0OAyDayflcGpp6FDaSCy
# pQ+VwxVMEogAcYkU6d1Lnt0KZnEB2vgUyNTawkRlwbE3aXTuAuPbC7iTKwbt4KQT
# /+SkqkPgZagEa9m4GuDOHzsPt01CDuSgMV0Y7uK9Dz48hEfUbJjBsXOxQraeeQqQ
# SEselNzTlMOG5X+7FNrWkkNfMQ8kI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wk+W6uEU34K+YL9MW3sihHNs
# VkYNTGNexSCp767TkRQDUNz87FWpPJTJvnU1j5Wo+OUyu7Nkq4vAny3e+iW7k5OX
# IlqztgGbjoih9N1kDux1JuPy3hDPmzB16nBZDjURbWLP9twfyFNvUxarO023YlAg
# G0yfYxPTQjH2hg==
# SIG # End signature block
#Copy and paste this into the end of a script file