Test1: create self signed cert and install to LocalMachine\My
$cert = New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "testselfsigned.com"
$path = "cert:\LocalMachine\My\" + $cert.thumbprint
Export-PfxCertificate -Cert $path -FilePath "D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcert.pfx" -Password (ConvertTo-SecureString "password" -AsPlainText -Force)
1. Create self signed cert and install to LocalMachine\My
$cert = New-SelfSignedCertificate -Subject "CN=testselfsigned.com" -CertStoreLocation "Cert:\LocalMachine\My" -KeyExportPolicy Exportable -KeySpec Signature -KeyLength 2048 -KeyAlgorithm RSA -HashAlgorithm SHA384
File changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:00:21 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:00:21 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:00:21 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:00:21 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:00:21 AM
PS C:\windows\system32> $cert
PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\My
Thumbprint Subject
---------- -------
FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A CN=testselfsigned.com
PS C:\windows\system32> $cert.PrivateKey.CspKeyContainerInfo.UniqueKeyContainerName
0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df
PS C:\windows\system32> $cert.PrivateKey.CspKeyContainerInfo.UniqueKeyContainerName
0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df
PS C:\windows\system32> $cert.PrivateKey.CspKeyContainerInfo.KeyContainerName
0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df
2. Test export cert
$path = "cert:\LocalMachine\My\" + $cert.thumbprint
Export-PfxCertificate -Cert $path -FilePath "D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcert.pfx" -Password (ConvertTo-SecureString "password" -AsPlainText -Force)
File change: None
3. Test uninstall cert and DeleteKey
Remove-Item $path -DeleteKey
File changes:
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:10:31 AM
Deleted: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:10:31 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:10:31 AM
4. Test C# load cert from file by default.
var bytes = File.ReadAllBytes(@"D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcert.pfx");
var cert = new X509Certificate2(bytes, "password");
Console.WriteLine("Thumbprint: {0}", cert.Thumbprint);
Console.WriteLine("Subject: {0}", cert.Subject);
Console.WriteLine("HasPrivateKey: {0}", cert.HasPrivateKey);
Output:
Thumbprint: FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A
Subject: CN=testselfsigned.com
HasPrivateKey: True
File changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:15:56 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:15:56 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:15:56 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:15:56 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:15:56 AM
Deleted: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:15:56 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:15:56 AM
5. Test load cert with different flags:
(If not specify X509KeyStorageFlags or use X509KeyStorageFlags.DefaultKeySet, it will be same behavior as X509KeyStorageFlags.MachineKeySet)
5.1 DefaultKeySet
var bytes = File.ReadAllBytes(@"D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcert.pfx");
var cert = new X509Certificate2(bytes, "password", X509KeyStorageFlags.DefaultKeySet);
Console.WriteLine("Thumbprint: {0}", cert.Thumbprint);
Console.WriteLine("Subject: {0}", cert.Subject);
Console.WriteLine("HasPrivateKey: {0}", cert.HasPrivateKey);
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:51:08 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:51:08 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:51:08 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:51:08 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:51:08 AM
Deleted: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:51:08 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:51:08 AM
5.2 X509KeyStorageFlags.UserKeySet
File Changes:
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 10:52:29 AM
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:52:29 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:52:29 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 10:52:29 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:52:29 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:52:29 AM
Deleted: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:52:29 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 10:52:29 AM
5.3 X509KeyStorageFlags.MachineKeySet
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:53:29 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:53:29 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:53:29 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:53:29 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:53:29 AM
Deleted: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:53:29 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:53:29 AM
5.4 X509KeyStorageFlags.UserProtected
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:54:25 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:54:25 AM
Pop up a window to get confirmation "Importing a new private signature key"
After confirm
File changes:
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:56:20 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:56:20 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:56:20 AM
Deleted: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:56:20 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:56:20 AM
5.5. X509KeyStorageFlags.PersistKeySet
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:57:31 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:57:31 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 10:57:31 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\0fc2dbe56bb6c9685938a5911726b656_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:57:31 AM
5.5. X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.UserKeySet
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\fdf2c34df3edbf092520c7c89451f524_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:59:02 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\fdf2c34df3edbf092520c7c89451f524_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:59:02 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 10:59:02 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\fdf2c34df3edbf092520c7c89451f524_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 10:59:02 AM
5.6 X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.MachineKeySet
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\d5e4f87eb2a4b913b03a9d8640377ac9_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:00:12 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\d5e4f87eb2a4b913b03a9d8640377ac9_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:00:12 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:00:12 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\d5e4f87eb2a4b913b03a9d8640377ac9_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:00:12 AM
5.7 X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.UserProtected
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\35a5774ddb06c3313d4b62f67748d7bb_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:00:54 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\35a5774ddb06c3313d4b62f67748d7bb_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:00:54 AM
Popup windows to confirm
After confirmed:
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:01:29 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\35a5774ddb06c3313d4b62f67748d7bb_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:01:29 AM
5.8 X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.DefaultKeySet
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\f07dd5d2951d51fb36fa520aa4ebfc8c_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:08:12 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\f07dd5d2951d51fb36fa520aa4ebfc8c_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:08:12 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:08:12 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\f07dd5d2951d51fb36fa520aa4ebfc8c_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:08:12 AM
5.9 No file change if use EphemeralKeySet, including all combinations:
EphemeralKeySet
EphemeralKeySet | DefaultKeySet
EphemeralKeySet | UserKeySet
EphemeralKeySet | MachineKeySet
EphemeralKeySet | UserProtected
var bytes = File.ReadAllBytes(@"D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcert.pfx");
var cert = new X509Certificate2(bytes, "password", X509KeyStorageFlags.EphemeralKeySet | X509KeyStorageFlags.DefaultKeySet);
Console.WriteLine("Thumbprint: {0}", cert.Thumbprint);
Console.WriteLine("Subject: {0}", cert.Subject);
Console.WriteLine("HasPrivateKey: {0}", cert.HasPrivateKey);
File change: NULL
6. Test cert install
6.1 Install to CurrentUser
var bytes = File.ReadAllBytes(@"D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcert.pfx");
var cert = new X509Certificate2(bytes, "password");
InstallCert(StoreLocation.CurrentUser, cert);
Installed cert to CurrentUser: FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A, CN=testselfsigned.com
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\a7622fc532a824eb715c590e69a39d7a_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:57:24 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\a7622fc532a824eb715c590e69a39d7a_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:57:24 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:57:24 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\a7622fc532a824eb715c590e69a39d7a_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:57:24 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\a7622fc532a824eb715c590e69a39d7a_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:57:24 AM
Deleted: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\a7622fc532a824eb715c590e69a39d7a_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:57:24 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:57:24 AM
6.2 Install to LocalMachine
Installed cert to LocalMachine: FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A, CN=testselfsigned.com
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\c73314f9da6603db0a68e6b6b042830e_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:58:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\c73314f9da6603db0a68e6b6b042830e_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:58:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:58:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\c73314f9da6603db0a68e6b6b042830e_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:58:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\c73314f9da6603db0a68e6b6b042830e_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:58:51 AM
Deleted: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\c73314f9da6603db0a68e6b6b042830e_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:58:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:58:51 AM
6.3 Install to CurrentUser + PersistKeySet
Installed cert to CurrentUser: FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A, CN=testselfsigned.com
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\df7bf893c8f7fcca08e96bd7a1242f4c_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:59:19 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\df7bf893c8f7fcca08e96bd7a1242f4c_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:59:19 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:59:19 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\df7bf893c8f7fcca08e96bd7a1242f4c_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:59:19 AM
6.4 Install to LocalMachine + PersistKeySet
Installed cert to LocalMachine: FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A, CN=testselfsigned.com
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\b97bb0d73778754034856e102b156c69_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:59:45 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\b97bb0d73778754034856e102b156c69_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:59:45 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:59:45 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\b97bb0d73778754034856e102b156c69_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:59:45 AM
6.5 Install to CurrentUser + PersistKeySet + UserKeySet
Installed cert to CurrentUser: FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A, CN=testselfsigned.com
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\1f9a5a3c411b5b4889c70674bc45a9ad_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:06:18 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\1f9a5a3c411b5b4889c70674bc45a9ad_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:06:18 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 12:06:18 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\1f9a5a3c411b5b4889c70674bc45a9ad_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:06:18 PM
6.6 Install to LocalMachine + PersistKeySet + UserKeySet
Installed cert to LocalMachine: FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A, CN=testselfsigned.com
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\a3d4397b0e508fee1124595d47a2d041_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:06:49 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\a3d4397b0e508fee1124595d47a2d041_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:06:49 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 12:06:49 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\a3d4397b0e508fee1124595d47a2d041_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:06:49 PM
6.7 Install to CurrentUser + PersistKeySet + MachineKeySet
Installed cert to CurrentUser: FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A, CN=testselfsigned.com
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\7626044da49e7550589608c2105f062a_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:00:16 PM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\7626044da49e7550589608c2105f062a_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:00:16 PM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 12:00:16 PM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\7626044da49e7550589608c2105f062a_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:00:16 PM
6.8 Install to LocalMachine + PersistKeySet + MachineKeySet
Installed cert to LocalMachine: FDC7C07028A6C0AF9FD0F778CD3ECAB273B53F0A, CN=testselfsigned.com
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\e12ffc6cfffe10805db586f50f804ad2_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:00:40 PM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\e12ffc6cfffe10805db586f50f804ad2_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:00:40 PM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 12:00:40 PM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\e12ffc6cfffe10805db586f50f804ad2_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:00:40 PM
Test2: create self signed cert and install to CurrentUser\My
Test create self signed cert and install to CurrentUser\My
1. Create self signed cert and install to CurrentUser\My
$cert = New-SelfSignedCertificate -Subject "CN=testselfsignedcurrentuser.com" -CertStoreLocation "Cert:\CurrentUser\My" -KeyExportPolicy Exportable -KeySpec Signature -KeyLength 2048 -KeyAlgorithm RSA -HashAlgorithm SHA384
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:29:42 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:29:42 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:29:42 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:29:42 AM
PS C:\windows\system32> $cert = New-SelfSignedCertificate -Subject "CN=testselfsignedcurrentuser.com" -CertStoreLocation "Cert:\CurrentUser\My" -KeyExportPolicy Exportable -KeySpec Signature -KeyLength 2048 -KeyAlgorithm RSA -HashAlgorithm SHA384
>>
PS C:\windows\system32> $cert
PSParentPath: Microsoft.PowerShell.Security\Certificate::CurrentUser\My
Thumbprint Subject
---------- -------
7B437CF999D3C118DF42739D6C97601AFE05F44E CN=testselfsignedcurrentuser.com
PS C:\windows\system32> $cert.PrivateKey.CspKeyContainerInfo.UniqueKeyContainerName
312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df
PS C:\windows\system32> $cert.PrivateKey.CspKeyContainerInfo.KeyContainerName
312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df
PS C:\windows\system32>
2. Test export cert
$path = "cert:\CurrentUser\My\" + $cert.thumbprint
Export-PfxCertificate -Cert $path -FilePath "D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcurrentuser.pfx" -Password (ConvertTo-SecureString "password" -AsPlainText -Force)
File change: None
3. Test uninstall cert and DeleteKey
Remove-Item $path -DeleteKey
File Changes:
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:31:44 AM
Deleted: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:31:44 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:31:44 AM
4. Test C# load cert from file by default.
var bytes = File.ReadAllBytes(@"D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcurrentuser.pfx");
var cert = new X509Certificate2(bytes, "password");
Console.WriteLine("Thumbprint: {0}", cert.Thumbprint);
Console.WriteLine("Subject: {0}", cert.Subject);
Console.WriteLine("HasPrivateKey: {0}", cert.HasPrivateKey);
Output:
Thumbprint: 7B437CF999D3C118DF42739D6C97601AFE05F44E
Subject: CN=testselfsignedcurrentuser.com
HasPrivateKey: True
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:32:40 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:32:40 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:32:40 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:32:40 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:32:40 AM
Deleted: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:32:40 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:32:40 AM
5. Test different flags:
(If not specify X509KeyStorageFlags or use X509KeyStorageFlags.DefaultKeySet, it will be same behavior as X509KeyStorageFlags.UserKeySet)
5.1 DefaultKeySet
var bytes = File.ReadAllBytes(@"D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcurrentuser.pfx");
var cert = new X509Certificate2(bytes, "password", X509KeyStorageFlags.DefaultKeySet);
Console.WriteLine("Thumbprint: {0}", cert.Thumbprint);
Console.WriteLine("Subject: {0}", cert.Subject);
Console.WriteLine("HasPrivateKey: {0}", cert.HasPrivateKey);
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:33:41 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:33:41 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:33:41 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:33:41 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:33:41 AM
Deleted: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:33:41 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:33:41 AM
5.2 X509KeyStorageFlags.UserKeySet
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:33 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:33 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:34:33 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:33 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:33 AM
Deleted: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:33 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:34:33 AM
5.3 X509KeyStorageFlags.MachineKeySet
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:34:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:51 AM
Deleted: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:34:51 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:34:51 AM
5.4 X509KeyStorageFlags.UserProtected
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:35:07 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:35:07 AM
Popup window for confirmation
After confirmed:
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:35:30 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:35:30 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:35:30 AM
Deleted: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:35:30 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:35:30 AM
6. Test cert install
6.1 Install to CurrentUser
var bytes = File.ReadAllBytes(@"D:\Temp\temp_certs\test_selfsignedcert\testselfsignedcurrentuser.pfx");
var cert = new X509Certificate2(bytes, "password");
InstallCert(StoreLocation.CurrentUser, cert);
Installed cert to CurrentUser: 7B437CF999D3C118DF42739D6C97601AFE05F44E, CN=testselfsignedcurrentuser.com
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:49:52 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:49:52 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:49:52 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:49:52 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:49:52 AM
Deleted: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:49:52 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:49:52 AM
6.2 Install to LocalMachine
Installed cert to LocalMachine: 7B437CF999D3C118DF42739D6C97601AFE05F44E, CN=testselfsignedcurrentuser.com
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:51:04 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:51:04 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:51:04 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:51:04 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:51:04 AM
Deleted: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:51:04 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:51:04 AM
6.3 Install to CurrentUser + PersistKeySet
Installed cert to CurrentUser: 7B437CF999D3C118DF42739D6C97601AFE05F44E, CN=testselfsignedcurrentuser.com
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:53:46 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:53:46 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:53:46 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:53:46 AM
6.4 Install to LocalMachine + PersistKeySet
Installed cert to LocalMachine: 7B437CF999D3C118DF42739D6C97601AFE05F44E, CN=testselfsignedcurrentuser.com
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\af855a25fcb02a56edc3a0b71b28c98c_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:54:34 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\af855a25fcb02a56edc3a0b71b28c98c_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:54:34 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 11:54:34 AM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\af855a25fcb02a56edc3a0b71b28c98c_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:54:34 AM
6.5 Install to CurrentUser + PersistKeySet + UserKeySet
Installed cert to CurrentUser: 7B437CF999D3C118DF42739D6C97601AFE05F44E, CN=testselfsignedcurrentuser.com
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\90482d04a0c9f478ccac4177dc3fa54b_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:08:46 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\90482d04a0c9f478ccac4177dc3fa54b_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:08:46 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 12:08:46 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\90482d04a0c9f478ccac4177dc3fa54b_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:08:46 PM
6.6 Install to LocalMachine + PersistKeySet + UserKeySet
Installed cert to LocalMachine: 7B437CF999D3C118DF42739D6C97601AFE05F44E, CN=testselfsignedcurrentuser.com
File Changes:
Created: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\e10a6236774b821983be3493c88f55fc_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:09:17 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\e10a6236774b821983be3493c88f55fc_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:09:17 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077 DateTime:4/11/2025 12:09:17 PM
Changed: C:\Users\TestUserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-12-1-386196202-1279114638-241320866-3464278077\e10a6236774b821983be3493c88f55fc_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 12:09:17 PM
6.7 Install to CurrentUser + PersistKeySet + MachineKeySet
Installed cert to CurrentUser: 7B437CF999D3C118DF42739D6C97601AFE05F44E, CN=testselfsignedcurrentuser.com
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:55:39 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:55:39 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:55:39 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\312c45fa6f25b8e1f23d4d3db7c76424_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:55:39 AM
6.8 Install to LocalMachine + PersistKeySet + MachineKeySet
Installed cert to LocalMachine: 7B437CF999D3C118DF42739D6C97601AFE05F44E, CN=testselfsignedcurrentuser.com
File Changes:
Created: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\9de34c4e0cecc6027351b815d5a8a8dc_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:56:06 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\9de34c4e0cecc6027351b815d5a8a8dc_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:56:06 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys DateTime:4/11/2025 11:56:06 AM
Changed: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\9de34c4e0cecc6027351b815d5a8a8dc_c92cc97f-46eb-4b7b-a959-558016c7f9df DateTime:4/11/2025 11:56:06 AM
浙公网安备 33010602011771号