summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Plugins/StorePlugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.lib/Plugins/StorePlugins')
-rw-r--r--src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSsl.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSsl.cs b/src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSsl.cs
index 3103e36..025f24a 100644
--- a/src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSsl.cs
+++ b/src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSsl.cs
@@ -50,7 +50,10 @@ namespace PKISharp.WACS.Plugins.StorePlugins
_log.Information("Saving certificate to Central SSL location {dest}", dest);
try
{
- File.WriteAllBytes(dest, input.Certificate.Export(X509ContentType.Pfx, _password));
+ var collection = new X509Certificate2Collection();
+ collection.Add(input.Certificate);
+ collection.AddRange(input.Chain.ToArray());
+ File.WriteAllBytes(dest, collection.Export(X509ContentType.Pfx, _password));
}
catch (Exception ex)
{