From 3599d915d8dd9ea3c38932d462cf2758efe3fc84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20RIVIERE?= Date: Wed, 3 Sep 2014 14:59:39 +0200 Subject: [PATCH] Adding support for p12 certificat Adding support for p12 certificat --- templates/import.ps1.erb | 2 +- templates/inspect.ps1.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/import.ps1.erb b/templates/import.ps1.erb index 4b9b423..540252b 100644 --- a/templates/import.ps1.erb +++ b/templates/import.ps1.erb @@ -13,7 +13,7 @@ switch -regex ($cert.Extension.ToUpper()) { $pfx = new-object System.Security.Cryptography.X509Certificates.X509Certificate2Collection $pfx.Import([System.IO.File]::ReadAllBytes("<%= @location %>\\<%= @name %>")) } - ".PFX" { + ".PFX|.P12" { $pfx = new-object System.Security.Cryptography.X509Certificates.X509Certificate2Collection $pfx.import("<%= @location %>\\<%= @name %>","<%= @password %>","Exportable,PersistKeySet") } diff --git a/templates/inspect.ps1.erb b/templates/inspect.ps1.erb index 3d56310..fec2280 100644 --- a/templates/inspect.ps1.erb +++ b/templates/inspect.ps1.erb @@ -12,7 +12,7 @@ switch -regex ($certificate.Extension.ToUpper()) { $pfx = new-object System.Security.Cryptography.X509Certificates.X509Certificate2Collection $pfx.Import([System.IO.File]::ReadAllBytes("<%= @location %>\\<%= @name %>")) } - ".PFX" { + ".PFX|.P12" { $pfx = new-object System.Security.Cryptography.X509Certificates.X509Certificate2Collection $pfx.import("<%= @location %>\\<%= @name %>","<%= @password %>","Exportable,PersistKeySet") }