Could not find or get context for certificate request
I am trying to send push notification to iphone. While searching the internet, I found that I had registered a P12 file on the server with winhttpcertcfg. But when I tried with this command
winhttpcertcfg -g -c LOCAL_MACHINE \ MY -s "CertificateName" -a "ASPNET"
in a command prompt window after installing winhttpcertcfg.
But I get the error "Couldn't find or get context for the request certificate"
Can you suggest me how to resolve this error?
a source to share
- Open MMC Console
- Add the Certificates snap-in for Computer Account. Further.
- Select "Local Computer". Further
- Find "Personal \ Certificates".
- Open the context menu in this folder. Select Tasks \ Import.
- Find your p12 certificate. Further
- Find the password in the "certificate name" .ks.pw.txt file and use it. Further
- Further. Done.
Open cmd as administrator.
Find C: \ Program Files (x86) \ Windows Resource Kits \ Tools for x64 machine
or C: \ Program Files \ Windows Resource Kits \ Tools on x86 machine
Run the following commands in sequence. This is IIS 6-7.5 compliant
winhttpcertcfg -g -c LOCAL_MACHINE \ MY -s CERTIFICATE NAME -a YOUR_COMPUTER_NAME
winhttpcertcfg -g -c LOCAL_MACHINE \ MY -s CERTIFICATE NAME -a YOUR_COMPUTER_NAME \ IIS_IUSRS
winhttpcertcfg -g -c LOCAL_MACHINE \ MY -s CERTIFICATE NAME -a YOUR_COMPUTER_NAME \ IUSR
winhttpcertcfg -g -c LOCAL_MACHINE \ MY -s CERTIFICATE NAME -a NetworkService
if everything is ok, you will see messages like Granting access to private key for account: ...
You may have to wait a few minutes after that due to Windows products. In my case, the certificates were not applied immediately.
If you did everything right, browser and go to https://ws.merchanttest.firstdataglobalgateway.com/fdggwsapi/services/order.wsdl
you will see the following (my case)

click OK and you will get the WSDL schema.
Good luck.
a source to share