Yes you should use hostssl in pg_hba.conf file. The Greenplum docs describe how to set it up:
https://docs.vmware.com/en/VMware-Greenplum/5/greenplum-database/security-guide-topics-Authenticate.html?hWord=N4IghgNiBcIM5ygXyA#topic_ibc_nl2_jr