Link to home
Start Free TrialLog in
Avatar of snowmizer
snowmizer

asked on

Can't publish base CRL...File already exists

I have a script running weekly on a Windows 2003 Certificate server that recreates our CRL and publishes the new crl. It is defined as follows:

@echo off
certutil -CRL
c:\scripts\sleep 5
copy /y %windir%\system32\certsrv\certenroll\*.crl c:\crldata
copy /y %windir%\system32\certsrv\certenroll\*.crt c:\certdata
certutil -dspublish -f -v "c:\windows\system32\certsrv\certenroll\abc.crl" > PublishCrl.log

When the "dsPublish" command runs it generates the message:

Certificate Services could not publish a Base CRL for key 0 to the following location: C:\WINDOWS\system32\CertSrv\CertEnroll\abc.crl. Cannot create a file when that file already exists. 0x800700b7 (WIN#@/HTTP: 183)

When I run the "dsPublish" command manually it comes back and says "Base CRL added to DS Store" Certutil: -dsPublish command completed successfully.

I just added the "-v" switch and the pipe to the log file today so I don't have any output from this yet. What do I need to do to fix this?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Paranormastic
Paranormastic
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of snowmizer
snowmizer

ASKER

I changed the permissions on this folder and ran my script. I didn't get any errors this time in my event log. I'm going to let it run as scheduled on Thursday morning and see what happens. I'll post the results after that run.

Thanks.
Everything turn out OK?
Yep. I checked yesterday and I didn't get this error. Thanks for the info.