Question

I need to have a "http*s*" enabled self hosted WCF service. Given that there need to be a certificate to have the service "s" enabled, I created the certificate using the following two commands in the same order:

makecert.exe -sv SignRoot.pvk -cy authority -r signroot.cer -a sha1 -n "CN=AuthorityName" -ss my -sr localmachine

and then

makecert.exe -iv SignRoot.pvk -ic signroot.cer -cy end -pe -n CN="localhost" -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localmachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12

Now to configure the port using SSL, netsh has to be used, which requires to be supplied with arguments certhash and appid. My best understanding is that I need to have the certificate to get these values. But where is the certificate I just created!!!????

I did try certmgr.msc, it showed the root as "Certificates - Current User". How to make it show the "localmachine" certificates, as marked by -sr option?

Again, where are my certificates!!??

Was it helpful?

Solution

The certificates are in the .CER files you specify on the command-line.

To use them you need to import them into the certificate store using the MMC/Certificate snap-in.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top