The yumdownloader utility lets you download the rpms from a yum repository. This command line utility is included in the yum-utils package, so install that first.
yum -y install yum-utils
Download openssl RPM
Download all RPMs on your system
for rpmpak in `rpm -qa`; do yumdownloader $rpmpak; done