It's an recurring issue that certificates cause some setup trouble with (my) development environments.
So it would be nice to use XConnect, for development only, without certificates.
Is it possible to use XConnect without certificates?
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.
Sign up to join this communityJust remove or disable these two files:
\App_Data\Config\sitecore\CoreServices\sc.XConnect.Security.EnforceSSL.xml
\App_Data\Config\sitecore\CoreServices\sc.XConnect.Security.EnforceSSLWithCertificateValidation.xml
This is only for the development purposes, of course.
To provide more context around this issue/use case, I have found that these recurring issues often arise when using enterprise PCs that are configured to use a VPN (such as GlobalProtect). Changes to the VPN connection status result in certificates being moved which results in 403 errors in xConnect.
The solution by @roman-klimenko works. Do that. You may also want to perform these additional steps:
<add name="messaging" connectionString="user id=messaginguser;password=xxxxxxxxxx;data source=localhost;Initial Catalog=SC_Messaging" />
<add name="processing.engine.storage" connectionString="user id=processingengineuser;password=xxxxxxxxxx;data source=localhost;Initial Catalog=SC_ProcessingEngineStorage" />
<add name="reporting" connectionString="user id=reportinguser;password=xxxxxxxxxx;data source=localhost;Initial Catalog=SC_Reporting" />
<add name="xdb.marketingautomation" connectionString="user id=marketingautomationuser;password=xxxxxxxxxx;data source=localhost;Initial Catalog=SC_MarketingAutomation" />
<add name="xdb.processing.pools" connectionString="user id=poolsuser;password=xxxxxxxxxx;data source=localhost;Initial Catalog=SC_Processing.Pools" />
<add name="xdb.referencedata" connectionString="user id=referencedatauser;password=xxxxxxxxxx;data source=localhost;Initial Catalog=SC_ReferenceData" />
<add name="collection" connectionString="user id=collectionuser;password=xxxxxxxxxx;data source=localhost;Initial Catalog=SC_Xdb.Collection.ShardMapManager" />