Note:
Do not run the emctl secure oms/agent command after adding the external certificate to the b64LocalCertificate.txt file. If you run the emctl secure command later, then repeat the steps 1 through 3 to make sure the external certificate exists on the b64certificate.txt file.