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\certs rv\certenr oll\abc.cr l" > 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\CertSr v\CertEnro ll\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.
@echo off
certutil -CRL
c:\scripts\sleep 5
copy /y %windir%\system32\certsrv\
copy /y %windir%\system32\certsrv\
certutil -dspublish -f -v "c:\windows\system32\certs
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\CertSr
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Everything turn out OK?
ASKER
Yep. I checked yesterday and I didn't get this error. Thanks for the info.
ASKER
Thanks.