After the new manager installation and enabling ssl inside the manager, I get disconnected. The reason is that the manager can't find the rest_certificate file.
There is a workaround for the bug by passing the profile set command:
"cfy profiles set -c /etc/cloudify/ssl/cloudify_external_cert.pem --skip-credentials-validation"
The manager searches for the credentials before setting the certificate path, therefore you need to pass the skip-credentials-validation flag.
The workaround is simple, but it should set the manager's path by default