Run a normal powershell
Import the Exchange server 2010 snapin and get the current certificates
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
PS C:\Users\Administrator> Get-ExchangeCertificate
Thumbprint Services Subject
---------- -------- -------
084B2597D626C5361CF8002FADBEA83B9144143D IP.WS. CN=trapoist.com, OU=Domain Control Validated
76C7987A7A9C7F9917A6A1B208220CA768CE0D23 IP..S. CN=trapoist.com, OU=Domain Control Validated
Get-ExchangeCertificate | select *
AccessRules : {System.Security.AccessControl.CryptoKeyAccessRule, System.Security.AccessControl.CryptoKeyAcces
sRule, System.Security.AccessControl.CryptoKeyAccessRule}
CertificateDomains : {trapoist.com, www.trapoist.com, autodiscover.trapoist.com, IMAP.trapoist.com...}
CertificateRequest :
IisServices : {IIS://MAILTRAPOIST/W3SVC/1}
IsSelfSigned : False
KeyIdentifier : 36A0EC10B4503C5DBF51815A50F442D9404BE04E
RootCAType : ThirdParty
Services : IMAP, POP, IIS, SMTP
Status : Valid
SubjectKeyIdentifier : 36A0EC10B4503C5DBF51815A50F442D9404BE04E
PrivateKeyExportable : True
PublicKeySize : 2048
ServicesStringForm : IP.WS.
Archived : False
Extensions : {System.Security.Cryptography.Oid, System.Security.Cryptography.Oid, System.Security.Cryptograph
y.Oid, System.Security.Cryptography.Oid...}
FriendlyName : trapoist.com
IssuerName : System.Security.Cryptography.X509Certificates.X500DistinguishedName
NotAfter : 8/9/2015 4:06:40 PM (SE VENCERA EL 8 DE SEPTIEMBRE)
NotBefore : 8/5/2014 7:39:01 PM
HasPrivateKey : True
PrivateKey : System.Security.Cryptography.RSACryptoServiceProvider
PublicKey : System.Security.Cryptography.X509Certificates.PublicKey
RawData : {48, 130, 5, 128...}
SerialNumber : 27B309845C2696
SubjectName : System.Security.Cryptography.X509Certificates.X500DistinguishedName
SignatureAlgorithm : System.Security.Cryptography.Oid
Thumbprint : 084B2597D626C5361CF8002FADBEA83B9144143D
Version : 3
Handle : 485017248
Issuer : CN=Go Daddy Secure Certificate Authority - G2, OU=http://certs.godaddy.com/repository/, O="GoDad
dy.com, Inc.", L=Scottsdale, S=Arizona, C=US
Subject : CN=trapoist.com, OU=Domain Control Validated
AccessRules : {System.Security.AccessControl.CryptoKeyAccessRule, System.Security.AccessControl.CryptoKeyAcces
sRule, System.Security.AccessControl.CryptoKeyAccessRule}
CertificateDomains : {trapoist.com, www.trapoist.com, autodiscover.trapoist.com, mail.trapoist.com...}
CertificateRequest :
IisServices : {}
IsSelfSigned : False
KeyIdentifier : 54B2B188FA07098417B50DF52BDC0A41E44C9234
RootCAType : ThirdParty
Services : IMAP, POP, SMTP
Status : DateInvalid
SubjectKeyIdentifier : 54B2B188FA07098417B50DF52BDC0A41E44C9234
PrivateKeyExportable : True
PublicKeySize : 2048
ServicesStringForm : IP..S.
Archived : False
Extensions : {System.Security.Cryptography.Oid, System.Security.Cryptography.Oid, System.Security.Cryptograph
y.Oid, System.Security.Cryptography.Oid...}
FriendlyName : trapoist.com
IssuerName : System.Security.Cryptography.X509Certificates.X500DistinguishedName
NotAfter : 8/9/2014 4:06:40 PM
NotBefore : 8/12/2013 2:29:54 PM
HasPrivateKey : True
PrivateKey : System.Security.Cryptography.RSACryptoServiceProvider
PublicKey : System.Security.Cryptography.X509Certificates.PublicKey
RawData : {48, 130, 5, 161...}
SerialNumber : 042D71441FC05E
SubjectName : System.Security.Cryptography.X509Certificates.X500DistinguishedName
SignatureAlgorithm : System.Security.Cryptography.Oid
Thumbprint : 76C7987A7A9C7F9917A6A1B208220CA768CE0D23
Version : 3
Handle : 485016480
Issuer : SERIALNUMBER=07969287, CN=Go Daddy Secure Certification Authority, OU=http://certificates.godadd
y.com/repository, O="GoDaddy.com, Inc.", L=Scottsdale, S=Arizona, C=US
Subject : CN=trapoist.com, OU=Domain Control Validated
Renew the expired selfsigned certificate
PS C:\Users\Administrator> Get-ExchangeCertificate -Thumbprint '76C7987A7A9C7F9917A6A1B208220CA768CE0D23' | New-ExchangeCertificate
Confirm
Overwrite the existing default SMTP certificate?
Current certificate: '76C7987A7A9C7F9917A6A1B208220CA768CE0D23' (expires 8/9/2014 4:06:40 PM)
Replace it with certificate: 'C3FBFA049FE6AC1806B950EB7A7AF8286EE04880' (expires 4/13/2020 12:56:34 PM)
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
Thumbprint
Services Subject
--------- -------- -------
C3FBFA049FE6AC1806B950EB7A7AF8286EE04880 IP..S. OU=Domain Control Validated, CN=trapoist.com
PS C:\Users\Administrator> Get-ExchangeCertificate
Thumbprint Services Subject
---------- -------- -------
C3FBFA049FE6AC1806B950EB7A7AF8286EE04880 IP..S. OU=Domain Control Validated, CN=trapoist.com
084B2597D626C5361CF8002FADBEA83B9144143D IP.WS. CN=trapoist.com, OU=Domain Control Validated
76C7987A7A9C7F9917A6A1B208220CA768CE0D23 IP..S. CN=trapoist.com, OU=Domain Control Validated
#DELETE THE OLD CERTIFICATE (EXPIRED)
PS C:\Users\Administrator> Remove-ExchangeCertificate -Thumbprint 76C7987A7A9C7F9917A6A1B208220CA768CE0D23
Confirm
Are you sure you want to perform this action?
Remove certificate with thumbprint 76C7987A7A9C7F9917A6A1B208220CA768CE0D23 from the computer's certificate store?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
PS C:\Users\Administrator> Get-ExchangeCertificate
Thumbprint Services Subject
---------- -------- -------
C3FBFA049FE6AC1806B950EB7A7AF8286EE04880 IP..S. OU=Domain Control Validated, CN=trapoist.com
084B2597D626C5361CF8002FADBEA83B9144143D IP.WS. CN=trapoist.com, OU=Domain Control Validated
#CALLING CMD TO RESET THE IIS.
PS C:\Users\Administrator> cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
#RESET EL IIS
C:\Users\Administrator>iisreset
Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted
Done