Enable xConnect on a local developer machine
#
In this postExample configuration files and certificate set-up steps.
#
What I wanted to doInstall xConnect alongside Sitecore XP 9.0.1 on a developer machine, in xp0 configuration. I didn’t have Powershell 5.1 installed, so had to go ahead without SIF. Yes, it was a bit of a nightmare.
#
Prerequisites- Packages for XP Single from Sitecore Downloads
- DACPAC databases from that package installed
- xConnect IIS site from that package hosted locally (devxc.perks.com)
- Sitecore XP9 hosted locally (dev.perks.com)
#
Generate a server certificate#
Generate a client certificate#
Note down the thumbprint for later:#
Export and ImportExport the client and server certificates (using Certificate Manager) and re-import them to the following locations:
- LocalMachine > Trusted Root Certification Authorities
Assign the .perks.com certificate Assign the .perks.com server certificate to the IIS sites dev.perks.com and devxc.perks.com
Ensure devxc.perks.com has Require SSL [ON] and Client certificates [Accept]
#
Add certificate details to Sitecore XP Connectionstrings.config#
Add certificate details to xConnect Connectionstrings.config#
Restart! Restart!Restart IIS, your machine, switch your house lights on and off a few times. Open a window.
#
TroubleshootingExport and Import the certificates into:
- Current User > Personal
- Current User > Trusted Root Certification Authorities
Use Certificate Manager to grant Read permissions to your certificates.
Remove any non-self-signed certificates from your Local Machine > Trusted Root Certification Authorities store. Beware doing this on your work PC, as some corporate certificates may be changed.
#
Associated error messages#
Next stepsPlease don’t use any of these steps in production! I’m only hacking around to get things running locally.
For further reading, check out:
- https://sitecore.stackexchange.com/questions/9413/xconnect-webapps-on-azure-paas-not-working
- https://getfishtank.ca/en/blog/sitecore-9-xconnect-status-403-forbidden-certificate-error
- https://kamsar.net/index.php/2017/10/All-about-xConnect-Security/
#
FeedbackComment here or find @perksc on Twitter. Feedback and corrections happily received.