Skip to content
The Bits That Byte
  • About
March 8, 2018 / Sitecore

Sitecore 9: Can’t Export Your Certificate’s Private Keys? Update to SIF Version 1.2.0

If you are using SIF Version 1.1.0 to generate Self-Signed Certificates and need to export these to other machines as part of a scaled environment, you may find that you are unable to export the Private Keys along with the certificate. In fact, the option to export is grayed out:

SIF Version 1.1.0 Created Certificate: No Exporting of Private Keys Option:

SIF110Export

This is due to a bug with SIF Version 1.1.0 not allowing the Private Key to exported upon creating the Self-Signed Certificate. If you attempt to use PowerShell to export the certificate, you are likely to get the following error:

Export-PfxCertificate : Cannot export non-exportable private key.
At line:3 char:1
+ Export-PfxCertificate -cert $path -FilePath c:\Certificates\cert.pfx  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Export-PfxCertificate], Win32Exception
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.CertificateServices.Commands.ExportPfxCertificate

To resolve this issue, update your SIF Version to 1.2.0, as this version creates certificates which allow the export of the private key. The following is one method for updating the SIF via PowerShell:

    # Install SIF from GET and Check for Updates
    Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2
    Install-Module SitecoreInstallFramework -Force
    Update-Module SitecoreInstallFramework -Force

Doing so will result in being able to export Self-Signed Certificates with the Private Key for import and usage on the appropriate servers in your Sitecore 9 Environment.

SIF Version 1.2.0 Created Certificate: Allows Exporting of Private Keys Option:

SIF120Export

Post navigation

Previous Post:

Sitecore 9 Feature: xConnect Configuration Environment (XConnectEnvironment SIF Parameter)

Next Post:

Sitecore 9: Restrict Access to the Client

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Sitecore Technology MVP

Categories

  • AngularJS
  • Azure
  • CSS3
  • HTML5
  • Hyper-V
  • JavaScript
  • jQuery
  • OneDrive
  • PowerShell
  • Responsive Web Design
  • Search
  • SEO
  • SharePoint
  • Sitecore
  • SQL 2008 R2
  • SQL 2012
  • Tech Review
  • Tech Toy
  • Technical Resources
  • Uncategorized
  • Visual Studio
  • Web Content Management
  • Windows 8
  • Windows 8 App
  • Windows App
  • Windows Server 2008 R2
  • Workflow

Sponsored Links

Recent Posts

  • Autofail: A Big Azure Autoscale Limitation and What To Do
  • Got Fixes? A Sitecore Troubleshooters Guide to Sitecore Hotfixes
  • Sitecore 10 Application Roles, Storage Roles, and Indexes
  • Don’t Copy Sitecore Databases Across Environments, Sync Instead
  • Hey Sitecore PaaS! Where are My Modules?

Blogroll

  • Colins Sitecore Tech Blog
  • Sitecore Architecture – Grant's Sitecore Rants
January 2021
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Dec    
© 2021 thebitsthatbyte.com - Powered by SimplyNews