SSL Certification Download and Auto Copy

Hello Team,
SSL certification is active and not expired.
1.How do it generate/ download certificate
2. Need to copy it HMI via WinSCP,
Is there a automated/script process to do this?