Skip to content
The Bits That Byte
  • About
May 30, 2019 / Sitecore

Encrypt and Decrypt Sitecore 9 connectionStrings

A best practice for Production environments is to encrypt your connectionStrings to protect data in case the web.config file is accessed “without authorization”.

My colleague Grant Killian wrote an excellent article in 2017 on the topic of encryption, the Microsoft ASP.NET IIS Registration Tool (aspnet_regiis.exe) is the focus in the updated Security Hardening guidelines of Sitecore.

Using the aspent_regiis.exe is achieved via a single Command Line entry. In both instances of encryption and decryption the examples use the specified physical path for the roles. The ASP.NET IIS Registration Tool page has several configuration options.

Note: Run your Command Prompt as an Administrator. The following examples were run on Server 2016.

Encrypt Sitecore 9 connectionStrings

Each Sitecore role requires the encryption ran. As an example, this run in a Command Prompt (Admin) would encrypt the SitecoreCMS role.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -pef "connectionStrings" "S:\Sitecore\SitecoreCMS"

Decrypt Sitecore 9 connectionStrings

Decryption of the connectionStrings is a one liner in a Command Prompt (Admin) as well. Here is a sample of decrypting the SitecoreCMS role.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -pdf "connectionStrings" "S:\Sitecore\SitecoreCMS"

Post navigation

Previous Post:

Sitecore 9.1 SIF Distributed Installation Forces Role Per Server

Next Post:

Sitecore 9.1 Prerequisites.json Missing Two Key Downloads for Scaled Deployment

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

Recent Posts

  • Sitecore Release Governance for Better Production Stability
  • 11 Tips for a More Stable Sitecore PaaS Environment
  • Sitecore Commerce 10.0.0 Bootstrap 404 Error and Other Changes
  • How to Run Cost Effective Sitecore Environments in Azure
  • Autofail: A Big Azure Autoscale Limitation and What To Do

Blogroll

  • Colins Sitecore Tech Blog
  • Sitecore Architecture – Grant's Sitecore Rants
April 2021
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930  
« Mar    
© 2021 thebitsthatbyte.com - Powered by SimplyNews