Step-by-step instructions for ALB users who need to migrate from Certificate Manager to Secrets Manager.
IBM Cloud Certificate Manager reached to End of Marketing on September 30, 2022, and will reach End of Support on December 31, 2022. This means that clients who currently use Certificate Manager need to migrate to IBM Cloud Secrets Manager.
Certificates can be migrated manually or through a script, and this will allow your certificates in Secrets Manager to be accessible from services in IBM Cloud. This blog post covers the simple use case of an ALB user who currently uses Certificate Manager.
Steps
We will cover the following:
- How to manually migrate the certificates for ALB from Certificate Manager to Secrets Manager
- How to assign access rights to Secrets Manager from ALB
- How to import certificates from Secrets Manager to ALB
How to manually migrate the certificates for ALB from Certificate Manager to Secrets Manager
First, you’ll need to download the certificates from Certificate Manager.
Required action within Certificate Manager
- Navigate to the hamburger icon at the top left to display the Resource list.
- Open Security and search for the existing Certificate Manager that you want to migrate. Click on it to open.
- Open Your certificates and right-click on the three-dots icon at the right end of the certificate that you want to migrate.
- Select Download Certificate from the displayed drop-down list.
- A file will be downloaded in ZIP format, including the certificate, secret key and ICA (Intermediate Certificates).
- Extract it to a folder that you can find easily.
Required action within Secrets Manager
- Navigate to the hamburger icon at the top left to display the Resource list.
- Open Security and search for the existing Secrets Manager that you want to migrate. Click on it.
- Click on Secrets in the left pane and then click the Add button to the right above of the list of secrets.
- Select TLS certificate on the first page of Add Certificate.
- Select Import certificate on the next page.
- Scroll down the page and name your certification that you want to import.
- Add a pem file to the Certificate section. You can get the pem file once you extract the downloaded ZIP file from Step 5 in the section above.
- Add a secret key file to the Secret key (Option) section from the extracted folder.
- Add an ICA file to the ICA (Option) section from the extracted folder.
- Click Create at the bottom right of the page.
- Now you have finished importing the certificate to Secrets Manager.
How to assign access rights to Secrets Manager from ALB
The next step is to give sufficient access rights to ALB so that it can use Secrets Manager. This is done through IAM.
Preparation for giving access rights
- Navigate to Manage > Access (IAM) on the portal to open the IAM page.
- Select Authorizations from the left pane to open the Manage Authorizations page.
Create a new Authorization from the Manage Authorizations page (giving access right)
- Click Create at the top right.
- Click Manage Authorizations to create a new Authorization.
- Select This Account for Source account.
- Select VPC Infrastructure Service for Source Service.
- Select Resources based on selected attributes for How do you want to scope the access?
- Check Resource type.
- Select Load Balancer for VPC for Resource type.
- Select Secrets Manager for Target service.
- Select All resources for How do you want to scope the access?
- Select Writer for Service access.
- Click Authorize.
How to import certificates from Secrets Manager to ALB
The next step is to import certificates from Secrets Manager to ALB.
Note: If you encounter an issue in this step, it will revert to the status that existed before importing the certificate from Certificate Manager. If there is a need to revert to the original status, please select Certificate Manager as source and import the certificate. This will restore the original status.
Import the certificate for ALB
- Click the icon shaped like four vertical lines in the top left of the portal.
- Select VPC Infrastructure in the left pane and select Load Balancers.
- Select your load balancer from the list in Load balancers for VPC and select the correct value for Region in the pop-up of the list.
- Click the Front-end listeners tab on the detailed page of load balancers.
- Select Edit from the drop-down list.
- Select Secrets Manager for Certificate source.
- Select your Secrets Manager instance for Secrets Manager.
- Select your imported certification for SSL Certificate.
- Click Save to import your selected certification.
Conclusion
This blog post has provided a good overview of manual migration from IBM Cloud Certificate Manager to IBM Cloud Secrets Manager and the steps for letting ALB use certification in Secrets Manager.
If you would like to complete the migration by using a script, please check out the links listed below:
- Migrating certificates from Certificate Manager
- How to Migrate Certificates from IBM Certificate Manager to IBM Cloud Secrets Manager