Exchange 2010: Expired Certificate Still being used

dejected
dejected used Ask the Experts™
on
hello

I am getting error id 24 in MSExchange Web Services on my Exchange 2010 SP3 server - says certificate expired. That certificate has expired but I renewed it and imported the new one and assigned all the services (except unified messaging which we don't use) to it.

Questions:
a) am OK to delete the old certificate?
b) why is it still being used for exchange Web Services (assume autodiscover and owa) when it does not have the IIS service role added to it?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Systems Administrator
Commented:
Did you use powershell, Enable-ExchageCertificate for all the services you're using?

You can remove the old one with Remove-ExchangeCertificate -Thumbprint "xxxx"
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017
Commented:
Get-ExchangeCertificate | ft Subject,services,IsSelfSigned,NotAfter

Open in new window

Run the above command and make sure only valid certificates are there in server certificate store.
Make sure expired certificate is not there.
If it is there remove it by
Remove-ExchangeCertificate -Thumbprint D18B16C10075CDE2B09BA575AF

Open in new window

You will get the thumbprint by
Get-ExchangeCertificate | ft thumbprint,NotAfter

Open in new window


Enable services on the right certificate. You can change services based on your requirement.
 
Enable-ExchangeCertificate -Thumbprint <thumbprint> -Services IIS,SMTP,POP,IMAP

Open in new window

Author

Commented:
Hello OfflineGeek

No - I did it through the EMC by  clicking "Assign Services to Certificate…" under the Actions pane. Is that not a good thing?

The old certificate is displaying as having SMTP, POP and IMAP assigned but not IIS - weird.

If I remove the old one will Exchange automagically use the new one for IIS?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Most Valuable Expert 2014
Commented:
If the certificate is not showing as being used for IIS, then you should remove it. Use remove-exchangecertificate to do that.
If Exchange then rejects that, saying you cannot remove the default SMTP certificate, simply run new-exchangecertificiate (no further options) and say yes to replace the default SMTP certificate. That will generate a new self signed certificate for internal SMTP use.
You can then remove the old certificate.

Don't forget to run iisreset afterwards.

Simon.

Author

Commented:
Thanks all. So the general feeling is just use the exchange powershell to remove the certfiicate? And nothing bad will happen...?
Muhammad MullaSystems Administrator

Commented:
Yes, Exchange Shell is the best method of removing/enabling certificates.

Author

Commented:
Thanks again - removed using the exchange powershell as advised. Cheers!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial