Since the new year (2020) there is no longer OpenSSL 1.0.2 available from ports:
Since PHP 5.x will not compile with OpenSSL 1.1.1, that means that from now on we must do custom compilations of OpenSSL and PHP in order to make them work. Users with FreeBSD 11.x will still have OpenSSL 1.0.2 from BASE though which may eventually help for easier setup (I tried compiling PHP 5.4 with OpenSSL from base and 7.4 from ports at the same time but I was unsuccessful; however I did not investigate much on it).20200101: AFFECTS: users of security/openssl and security/openssl111 AUTHOR: brnrd@FreeBSD.org The openssl port was removed on 2019-12-31, subsequently the openssl111 port was renamed to openssl on 2020-01-01. The shared library version of OpenSSL has been bumped. Users of DEFAULT_VERSIONS= ssl=openssl111 must update this to ssl=openssl. You must rebuild all ports that depend on OpenSSL if you use OpenSSL from ports.