• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6818
  • Last Modified:

Using certutil -dspublish

If I used the command "certutil -dspublish Name.Cer" to publish a certificate to the DS store, then what command would I use to remove the same certificate and publish an updated version?

I'm asking because a script performs the publishing for me, and I don't have a script to peform the removal.

Thanks,
BBanis2K
0
bbanis2k
Asked:
bbanis2k
  • 4
  • 2
1 Solution
 
kevinf40Commented:
Hi  bbanis2k

have a look at this technet page:

http://technet2.microsoft.com/WindowsServer/en/Library/a3d5dbb9-1bf6-42da-a13b-2b220b11b6fe1033.mspx?mfr=true

Specifically the sections on :

Certutil tasks for managing certificates
and
Certutil tasks for managing a Certification Authority (CA)

These have details on publishing, revoking and updating certificates.

Hope this helps!

cheers

K

0
 
bbanis2kAuthor Commented:
I tried the same command, with the -f switch so that it would overwrite the existing certficate.  Unfortunately it didn't work.

"certutil -dspublish -f Name.cer"
0
 
kevinf40Commented:
Hi

If you try it using the -v option in addition to the -f does it give any useful error output?

I assume you are running this as a user with administrative privileges?
0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
bbanis2kAuthor Commented:
I get the below, no matter which switches I use.



Certificate already in DS store.

CertUtil: -dsPublish command completed successfully.
0
 
kevinf40Commented:
OK, it looks like the system thinks the cert you are trying to install is exactly the same as the one you have already got installed....

If you have a backup of the original certificate you could try using delstore to delete the existing one then try re-publishing the new one.

You could also view the installed certificate and compare it to the one you are trying to install.

I'll look into this further for you later.


0
 
kevinf40Commented:
Hi Tolomir

I notice you have been clearing several questions up - good job!

I'm curious as to whether bbanis had any luck backing up the cert, and then deleting it and re-publishing it.

With regards to the points as I've only started answering questions in the last couple of months I'm happy to go with whatever you / the moderators deem fair.

cheers

Kevin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now