Disco icon indicating copy to clipboard operation
Disco copied to clipboard

Expired wireless certificates deletion/update

Open pconnell247 opened this issue 10 years ago • 1 comments

Problem: Unable to delete and re-assign a wireless certificate that has expired for an active device from the Disco console.

pconnell247 avatar Jul 20 '15 00:07 pconnell247

I've used the below SQL update to disable expired certs from the past two months. Still have to go and run the bootstrapper to add a new cert, but better than doing manually with Access...

USE [Disco]
GO

UPDATE [dbo].[DeviceCertificates]
   SET [Enabled]=0
 WHERE (Disco.dbo.DeviceCertificates.ExpirationDate between DATEADD(month, -2, GETDATE()) and GETDATE() and disco.dbo.DeviceCertificates.Enabled=1)
GO

JamesDodds avatar Jul 22 '15 00:07 JamesDodds