If you are managing a large SharePoint Farm which uses SSL Certificates for Web Applications, Apps etc, then you would like to see the status of Certificates of certificates every once while. Most certificates are issued once every year so SharePoint site can result in Error and app can fail if failed certificate is used. I wrote the script below to export and email the certificate from a SharePoint Server. It may save few clicks for someone. The script below will export all Root and Personal Certificates to CSV and Email the designated User or Group. It should be deployed on a SharePoint Box to dynamically read the SMTP Server. Change or Disable the Email script to make it dynamic for Non SharePoint Environment.
Check here