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.

Install yum-utils

yum -y install yum-utils

Download openssl RPM

yumdownloader openssl

Download all RPMs on your system

for rpmpak in `rpm -qa`; do yumdownloader $rpmpak; done