31

demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Embed Size (px)

Citation preview

Page 1: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")
Page 2: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Configuring Cross-Farm Services in Microsoft SharePoint 2010

Shannon BrayTechnical Architect | Training DirectorPlanet Technologies

Page 3: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Shannon Bray

MCT, MCPD(e), MCITP, MCSD, MCAD, …SharePoint 2010 Microsoft Certified Master CandidateAutomating SharePoint 2010 with Windows PowerShell 2.0Technical Architect | Training DirectorPresident of Colorado SharePoint User’s Group

Page 4: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

In this session you will learn to:

Understand the Service Application ArchitectureUnderstand Key ConceptsUnderstand Service Federation and How it WorksThe Steps Include …Troubleshoot the Federated Service EnvironmentTest the Federated Service Environment

Page 5: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

To Start Out With …

Two Farmshttp://enterprise.teched.localhttp://internet.teched.local

No SharePoint Service AccountsNo SharePoint Service ApplicationsNo SharePoint Content Databases in SQL Server

Page 6: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

To Start Out With …

Two Farmshttp://enterprise.teched.localhttp://internet.teched.local

No SharePoint Service AccountsNo SharePoint Service ApplicationsNo SharePoint Content Databases in SQL Server

Everything will be built during the presentation!!!

Page 7: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

demo

Build Core Infrastructures

Shannon BrayTechnical Architect | Training DirectorPlanet Technologies

Page 8: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Understand the SA Architecture

Services can be consumed “a la carte”The service architecture is extensibleServices are supported on SharePoint FoundationServices can be scaled outServices can be resilient \ redundantServices can be Federated

Page 9: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Understand Key Concepts

ServiceService Machine InstanceService ApplicationService Application ProxyService ConsumerService Proxy GroupsDeploying Service ApplicationsAutomatic Services

Page 10: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Understand Federation and How it Works

Automatic ServicesServices that Support FederationFarm Level TrustService Application PermissionsDomain Level Trust

Page 11: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Automatic Services

Application Discovery and Load Balancer Service ApplicationSecurity Token Service Application

Page 12: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

demo

Automatic Services

Shannon BrayTechnical Architect | Training DirectorPlanet Technologies

Page 13: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Enterprise Services Farm

Page 14: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

The Steps Include …

Create the Publishing CertificateCreate the Consumer CertificatesExchange the CertificatesImport the Consumer Certificates on PublisherImport the Publishing Certificate on the ConsumerConfigure Trust with Consumer Farm IDPublish the Service(s)Consume the Service(s)

Page 15: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Create the Publishing Certificate

$rootCert = (Get-SPCertificateAuthority).RootCertificate

$rootCert.Export("Cert") | Set-Content "C:\Certs\EnterpriseServicesRootCert.cer" -Encoding byte

Page 16: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Create the Consumer Certificates

$rootCert = (Get-SPCertificateAuthority).RootCertificate $rootCert.Export("Cert") | Set-Content "C:\Certs\InternetRootCert.cer" -Encoding byte

$stsCert = (Get-SPSecurityTokenServiceConfig).LocalLoginProvider.SigningCertificate $stsCert.Export("Cert") | Set-Content "C:\Certs\InternetSTSCert.cer" -Encoding byte

Page 17: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Get the Consumer Farm ID

$farmID = (Get-SPFarm).Id

New-Item C:\Certs\internetConsumerFarmID.txt -type file -force -value "$farmID“

Page 18: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Swap ‘Em

Copy-Item \\$consumer\c$\Certs\InternetConsumerFarmID.txt \\$publisher\c$\Certs

Copy-Item \\$publisher\c$\Certs\EnterpriseServicesRootCert.cer \\$iconsumer\c$\CertsCopy-Item \\$iconsumer\c$\Certs\InternetRootCert.cer \\$publisher\c$\CertsCopy-Item \\$iconsumer\c$\Certs\InternetSTSCert.cer \\$publisher\c$\Certs

Page 19: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Import the Certs on Publishing

$trustCert = Get-PfxCertificate "C:\certs\InternetRootCert.cer" New-SPTrustedRootAuthority Internet -Certificate $trustCert

$stsCert = Get-PfxCertificate "c:\certs\InternetSTSCert.cer" New-SPTrustedServiceTokenIssuer Internet -Certificate $stsCert

Page 20: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Import the Certs on Consumer

$trustCert = Get-PfxCertificate "C:\Certs\EnterpriseServicesRootCert.cer"

New-SPTrustedRootAuthority EnterpriseServices -Certificate $trustCert

Page 21: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Permissions to the Consumer Farm

$farmID = Get-Content C:\Certs\InternetConsumerFarmID.txt

$security = Get-SPTopologyServiceApplication | Get-SPServiceApplicationSecurity

$claimProvider = (Get-SPClaimProvider System).ClaimProvider

Page 22: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Topology Discovery

$principal = New-SPClaimsPrincipal -ClaimType "http://schemas.microsoft.com/sharepoint/2009/08/claims/farmid" -ClaimProvider $claimProvider -ClaimValue $farmID

Grant-SPObjectSecurity -Identity $security -Principal $principal -Rights "Full Control"

Get-SPTopologyServiceApplication | Set-SPServiceApplicationSecurity -ObjectSecurity $security

Page 23: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

demo

The Steps Include…

Shannon BrayTechnical Architect | Training DirectorPlanet Technologies

Page 24: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Test the Federated Service Environment

Managed Metadata Service from Consumer Farm

Page 25: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Troubleshoot the Environment

Ensure Domain TrustConsumer has permission to Topology ServiceCheck the ACLFQDNCertificates

Page 26: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

demo

Test and Troubleshoot the Federated ServicesShannon BrayTechnical Architect | Training DirectorPlanet Technologies

Page 27: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")
Page 28: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Related Content

OSP310 - Virtualizing Your SharePoint Farm ArchitectureOSP201 - The Ten Immutable Laws of Microsoft SharePoint Security

BOF18 – Advanced Architectures for Microsoft SharePoint 2010

Product Demo Stations for SharePoint 2010

Find Me Later At…BOF18 – Advanced Architectures for Microsoft SharePoint 2010SharePoint Booth@NoIdentity29 – Follow me… to follow me.

Page 29: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Resources

www.microsoft.com/teched

Sessions On-Demand & Community Microsoft Certification & Training Resources

Resources for IT Professionals Resources for Developers

www.microsoft.com/learning

http://microsoft.com/technet http://microsoft.com/msdn

Learning

www.northamerica.msteched.com

Connect. Share. Discuss.

Page 30: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

Complete an evaluation on CommNet and enter to win!

Page 31: demo Create the Publishing Certificate $rootCert = (Get- SPCertificateAuthority).RootCertificate $rootCert.Export("Cert")

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS

PRESENTATION.