align AAD with ADFS rapmls.info


$msolcred = Get-Credential -UserName admin@netmagic.onmicrosoft.com  -Message “password for netmagic is FRED!”
Connect-MsolService -Credential $msolcred -ErrorAction Stop

$cert = “MIIC5jCCAc6gAwIBAgIQELcx5ZetWLxLu947oG+anjANBgkqhkiG9w0BAQsFADAvMS0wKwYDVQQDEyRBREZTIFNpZ25pbmcgLSBwZXRlcnZtMzIucmFwbWxzLmluZm8wHhcNMTQwNzAyMTg0NTIwWhcNMTUwNzAyMTg0NTIwWjAvMS0wKwYDVQQDEyRBREZTIFNpZ25pbmcgLSBwZXRlcnZtMzIucmFwbWxzLmluZm8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDlrHS0Y6LIak6OFJulzl0EWAm/1CZbBTnGuh+geRt/Wllegtwfl7b+v8irjyDYeB59q0SlLb58H0Q4j5iYzDiuyXUwwNioTv4DKmDPsUQV3nbmV7HUqG0Ddc68Y46VRiLTN914QqKxgtaxLXx1qtxhOrrjlEGgyfpk4hDJv7njsCkI3YxBhBpNYdOQI23EX/LUP0Y2UiUdPlxueAqcoN0syR6WArBaVHARa35zJABevjm5jM9Qh8LiD+E3IhXjfMisi7xYYHiq3IogLZDg+y6hx4Nu/xpHuWHYqa+yNeB9GLjKrFpkK9xcWjMZkxeZ14Rd7GbhG7dGquRQIFomvdf1AgMBAAEwDQYJKoZIhvcNAQELBQADggEBAI/tJE+eFaFA7GsMYRzMWP2BiNY2MyaJfErSovq9IuvrQ7iqitJUkbCHcEjxhd2VmSo/EC+56feoyaoowwgq5q2qBA8oWg7LOg0UIP1EWCbeWbM6u3asU0rnyD6QD1RWjSkDI6G0G3NffbTPPjnOqAl99ZO1SYA50nwbM85dubHvMU2R1beFw1VXXVYjtyFft7c0Ksrg15jpYhQqKSjKkez/tGv9YIkt1mOHcJSO2QKuv/vyQjrqMM/bwxIet+hJ095RjoxaVnboWNZN2DHB/DVP0hBZlKkBOYRabJm6tWQMuxSzc4wqog1YYN5judGiORmaNJq5danHw98Sia7DLP4=”;

Set-MsolDomainFederationSettings -DomainName rapmls.info -SigningCertificate $cert

Get-MsolDomainFederationSettings -DomainName rapmls.info

$localhostcert = “MIIB0TCCATqgAwIBAgIQMB03MGH0sZRBtyF2QpuRSzANBgkqhkiG9w0BAQUFADAUMRIwEAYDVQQDEwlsb2NhbGhvc3QwHhcNMTQwNzExMTgyNTIwWhcNMTkwNzExMDAwMDAwWjAUMRIwEAYDVQQDEwlsb2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANxvf+N7ApYPEIZKB4yGbZTdN9vPz112Y19/rnZKrPbswvaS+4fJLrFEDTowbHCULo9QfCZLtKxGlnBxw+huZV6NWYlqfmauX9h2nW+j5yA8bqXgi3bmuwOgUgzceqx7Hpn/TnX2p2NNu/aRodb8pCyCl42hoA5ZYll9zscVQLeBAgMBAAGjJDAiMAsGA1UdDwQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATANBgkqhkiG9w0BAQUFAAOBgQAQhBKsWjhrjGMO563Alqh7UJo8M57Qjgej0P43LdeEUDiNa+HBo1tRr6BIxoWpAlxOXOCAF7G7yvrSb5MTZ5Oxn846cKGeZUP7aexpP//TOi3buiGR5dUsxaAn0BBPHDPsb2x3RoQHyW96eyhdAq4aI/Y01SqCTakZnztXjKI2IQ==”;

Set-MsolDomainFederationSettings -DomainName rapmls.info -SigningCertificate $localhostcert

Get-MsolDomainFederationSettings -DomainName rapmls.info

Advertisements

About home_pw@msn.com

Computer Programmer who often does network administration with focus on security servers. Very strong in Microsoft Azure cloud!
This entry was posted in AAD. Bookmark the permalink.