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") }