Further SSL CSR generation changes
This commit is contained in:
parent
8fb6fc7b8a
commit
c0ed1d0f0b
2 changed files with 6 additions and 4 deletions
|
@ -66,9 +66,13 @@ namespace WebsitePanel.Providers.Web.Iis
|
|||
|
||||
// Provide key container name, key length and key spec to the private key object
|
||||
privateKey.Length = cert.CSRLength;
|
||||
privateKey.KeySpec = X509KeySpec.XCN_AT_SIGNATURE;
|
||||
privateKey.KeySpec = X509KeySpec.XCN_AT_KEYEXCHANGE;
|
||||
privateKey.KeyUsage = X509PrivateKeyUsageFlags.XCN_NCRYPT_ALLOW_ALL_USAGES;
|
||||
privateKey.ExportPolicy = X509PrivateKeyExportFlags.XCN_NCRYPT_ALLOW_PLAINTEXT_EXPORT_FLAG | X509PrivateKeyExportFlags.XCN_NCRYPT_ALLOW_EXPORT_FLAG;
|
||||
privateKey.ExportPolicy =
|
||||
X509PrivateKeyExportFlags.XCN_NCRYPT_ALLOW_PLAINTEXT_EXPORT_FLAG
|
||||
| X509PrivateKeyExportFlags.XCN_NCRYPT_ALLOW_ARCHIVING_FLAG
|
||||
| X509PrivateKeyExportFlags.XCN_NCRYPT_ALLOW_PLAINTEXT_ARCHIVING_FLAG
|
||||
| X509PrivateKeyExportFlags.XCN_NCRYPT_ALLOW_EXPORT_FLAG;
|
||||
privateKey.MachineContext = true;
|
||||
|
||||
// Provide the CSP collection object (in this case containing only 1 CSP object)
|
||||
|
|
|
@ -11,8 +11,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||
..\..\LICENSE.txt = ..\..\LICENSE.txt
|
||||
..\..\Readme.htm = ..\..\Readme.htm
|
||||
..\..\ReleaseNotes.htm = ..\..\ReleaseNotes.htm
|
||||
VersionInfo.cs = VersionInfo.cs
|
||||
VersionInfo.vb = VersionInfo.vb
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebsitePanel.Server", "WebsitePanel.Server\WebsitePanel.Server.csproj", "{38C6047C-E447-4CC2-891F-ABE54D4659F3}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue