Configuring a Valid SSL Certificate in the Target Environment
- Log in to the agent node and run the following command to obtain the certificate from mirror URL or obtain the certificate by yourself:
1openssl s_client -connect {host}:{port} -showcerts > cert.pem
In the preceding command, host indicates the domain name, port indicates the port number (443 by default), and cert.pem indicates the name of the saved certificate. For example:
1openssl s_client -connect s3-kp-szv-gen.hics.huawei.com:443 -showcerts > cert.pem
- Add the obtained certificate to the system trustlist.
1cat cert.pem >> /etc/pki/tls/certs/ca-bundle.crt
- Return to the DevKit page, delete the original project, and create a project for migration.
Parent topic: Others