In this quick post would discuss the process and steps involved in rotating the expiring Azure AD application certification configured for AWS SSO login.
This is applicable where you have your AWS account SSO configured with Azure Active Directory and the associated application password is about to expire or maybe already expired.
Before you start, make sure to have the appropriate AWS IAM and Azure AD permission or involve the teams having the required access to create an application certificate (in Azure) and rotate the same in AWS.
Now, login to AWS and take the backup of currently used metadata.
- Login to AWS => Go to IAM => Click on Dashboard or from the IAM menu, click on Identity Provider
- Click on Azure AD => From Metadata Document section, Download the current metadata file for backup purpose
- Go to Azure Active Directory => Select Enterprise applications from left menu options
- From the Enterprise applications section, Select the correct AWS Application used for SSO
- No on the AWS Application screen, go to Single Sign-on option => SAML Signing Certificate and click Edit
- On SAML Signing Certificate Page, Create a new Certificate, Save and mark it as Active, close the window
- Now on SAML Signing Certificate Page, verify the certificate Expiry date and Download the Federation Metadata XML
- Go to AWS account IAM Identity Provider Section, Steps are mentioned above
- Within the Metadata Document section, this time Click on Replace Metadata, on pop-up window Type replace and Click on Replace tab. Just in case if you didn't download the current metadata file earlier, do that so just in case of any issue you could revert
- Now browse and select the Federation Metadata XML file downloaded after Azure AD application certificate rotation and click open
- It would take the next few seconds and you are done.
- Test your AWS Single Sign-on URL, you can also perform the testing from within the Azure Application SAML bases Single sign-on page.