script to check certificate expiration date

I entered 80 days as an example. Now, of course, we have a problem. | Theme by, Scan site list for certificate expiry using PowerShell, Downloading PowerShell Certificate Scanner Script, How to Send Email with Office 365 Direct Send and PowerShell, Xen Virtual Desktop Cannot connect to vCenter after a certificate update, Replace expired SSL Certificate on EMC VNX 5400, PowerShell Parameters Zero to Hero Part1. OpenSSL client provides tons of data, including validity dates, expiry dates, who issued the TLS/SSL certificate, and much more. Use correct formating (Carriage return after a pipeline and indentation). Details: Cert name: CN=v16mdm. The nature of simulating nature: A Q&A with IBM Quantum researcher Dr. Jamie We've added a "Necessary cookies only" option to the cookie consent popup. You need to change the date format on your Windows computer or convert the $expDate variable to your datetime format. -dates : Prints out the start and expiry dates of a TLS or SSL certificate. ', $CCAddress = 'emailaddress@domainname.com', Send-MailMessage -From $FromAddress -To $ToAddress -Cc $CCAddress -Subject $MessageSubject -Body $Emailbody -BodyAsHtml -SmtpServer $SendingServer -Port $SmtpServerPort, # --------------------------------------------------,