How to work around Windows Phone SDK 8.0 installation failure caused by invalid digital certificate

UPDATE - A new Windows Phone SDK 8.0 setup package has been published that contains a fix for this issue. The original workaround is no longer needed.

Recently, an issue came up that can cause the Windows Phone SDK 8.0 to fail to install on 64-bit versions of Windows 8 or Windows 8.1.  This issue will cause setup to fail and report an error like the following:

A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file.

Microsoft has published a knowledge base article with steps you can use to work around this issue.  You can find the knowledge base article at https://support.microsoft.com/kb/2897627.  Here is a quick summary of the steps listed there:

  1. Uninstall the partially installed Windows Phone SDK 8.0 if it currently installed on your computer.
  2. Download and install the updated setup package
    1. Web downloader - https://www.microsoft.com/en-us/download/details.aspx?id=35471
    2. ISO - https://go.microsoft.com/fwlink/?LinkID=257234

Here is the previous workaround that was published prior to the updated setup package being published:

  1. Uninstall the partially installed Windows Phone SDK 8.0 if it currently installed on your computer.

  2. Download the .msi and .cab files from the following 4 locations and save them to the same folder on your computer:

    https://go.microsoft.com/fwlink/?LinkId=257143
    https://go.microsoft.com/fwlink/?LinkId=257144
    https://go.microsoft.com/fwlink/?LinkId=257145
    https://go.microsoft.com/fwlink/?LinkId=257146

  3. Go to the folder that you saved the files to and run Win8SharedSDKTools.msi file.

  4. After installing Win8SharedSDKTools.msi, re-run Windows Phone SDK 8.0 setup and install like normal.

<update date="10/11/2013"> Added a step about uninstalling the Windows Phone SDK 8.0 first if there is a partially installed version on the computer from a previous failed install. </update>

<update date="10/17/2013"> Added information about the new setup package that contains a fix for the invalid digital certificate issue. </update>

Comments

  • Anonymous
    October 09, 2013
    more windows phone fail

  • Anonymous
    October 09, 2013
    sir it is still not working

  • Anonymous
    October 10, 2013
    Hi Madhur - Can you list the exact steps you have already tried and what error message(s) you are still seeing when you try to install the Windows Phone SDK 8.0 on your computer?

  • Anonymous
    October 10, 2013
    Worked for me but only after I followed this step in the MS article, without the uninstall it failed "Uninstall the partial installation of Windows Phone SDK 8.0. "

  • Anonymous
    October 10, 2013
    Hi AdamL - Thanks for the heads up.  It looks like that step was added to the knowledge base article after I wrote this blog post.  I've added that step to this blog post too.

  • Anonymous
    October 12, 2013
    Hi, i am installing windows phone sdk 8.0 on windows 8.and i have installed vs 2012.during the installation of wp SDK 8.0 that give me the error "unable to locate......say about location" how to solve this problem. please tell me about this error. thanx

  • Anonymous
    October 13, 2013
    Hi Iftikhar ali - What is the full error message that you're seeing in this scenario? Also, can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  • Anonymous
    October 15, 2013
    Awesome Aaron, this made my day. I hope this will be fixed in official download and also that this workaround is mentioned here support.microsoft.com/.../2897627. This has been broken pretty recently I suppose, first time I've run into this issue.

  • Anonymous
    October 17, 2013
    I also faced the same issue. I changed the system date to 5 months back and installed it. It worked!

  • Anonymous
    October 19, 2013
    thanks its works for me

  • Anonymous
    October 19, 2013
    Thanks Aaron, it worked like charm... :D

  • Anonymous
    October 23, 2013
    i had the same error while installing Win 8.1 SDK, thanks

  • Anonymous
    October 30, 2013
    it worked guys...  

  • Anonymous
    October 31, 2013
    The comment has been removed

  • Anonymous
    November 15, 2013
    It worked man, thank you very much

  • Anonymous
    November 15, 2013
    The comment has been removed

  • Anonymous
    November 16, 2013
    Hi jPush - You should just need to uninstall any leftover partial installs of the Windows SDK 8.0 and then install the new version from www.microsoft.com/.../details.aspx or go.microsoft.com/fwlink. If you've tried that and it didn't work, can you please provide more details about what error messages you're seeing when you try to install the new version, and can you use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  • Anonymous
    December 04, 2013
    Hi, Thanks for this. It worked for me. Really Thanks..:-)

  • Anonymous
    January 02, 2014
    Thanks for this. It worked for me.

  • Anonymous
    January 03, 2014
    Thanks Aaron Stebner , really nice stuff and it helped a lot.

  • Anonymous
    February 03, 2014
    Hi Aaron Stebner I have tired downloading the .msi and .cab files which you mentioned above and uninstalled partially installed SDK 8.0 and tried but still not working Its given an error "unable to locate source package" and below to that its asking the directory path when i clicked its trying for cab1.cab folder but i have kept all .msi .cab files above in same folder where the SDK setup file is kept and extracted the .cab files Please find the screenshots links http://sdrv.ms/LkTsIB skydrive.live.com/redir Please help me out struggling with this from more than 2 weeks :(

  • Anonymous
    February 04, 2014
    The comment has been removed

  • Anonymous
    February 14, 2014
    Awesome Solution.This saved my day

  • Anonymous
    February 27, 2014
    Kumar you are a genius ,you got brain. that the easiest step ever lol

  • Anonymous
    February 27, 2014
    Kumar thanks bro,you came up with the easiest solution. People change date"Months". Thanks a lot to you to Aaron Stunning Job

  • Anonymous
    February 27, 2014
    Still we're facing the same issue. social.msdn.microsoft.com/.../value-cannot-be-nullparameter-name-key

  • Anonymous
    February 28, 2014
    Hi Vivek - In that forum post, it looks like you're trying to repair an existing install.  If you are hitting the expired digital certificate issue, repairing won't solve it.  Instead, you need to fully uninstall the version of VS that has this problem and then re-download and re-install it.

  • Anonymous
    March 03, 2014
    The comment has been removed

  • Anonymous
    March 04, 2014
    Hi Ali - Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  • Anonymous
    March 06, 2014
    this is my log file: onedrive.live.com/redir

  • Anonymous
    March 07, 2014
    The comment has been removed

  • Anonymous
    March 07, 2014
    Hi, thank you for your responses. No, it didn't work for me, still the NuGet error comes up.

  • Anonymous
    March 07, 2014
    The comment has been removed

  • Anonymous
    March 16, 2014
    Hi, re-downloading iso file solved my problems. It installed successfully.

  • Anonymous
    April 04, 2014
    Hi  Aron can you help me with this problem i am facing while im installing windows phone 8 sdk.

  • Anonymous
    April 05, 2014
    Hi Amit - Just to confirm, have you already tried the workaround listed above in this blog post (uninstall the partially installed Windows Phone SDK, download the new installer and re-run the installer)? If you've already tried that and you're still seeing failures, then can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://onedrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  • Anonymous
    September 17, 2014
    hello Aaron Stebner's i have a vs2012 ultimate and windows 8.1 pro 64bit .i want to install sdk8.0 but when i install i am getting an error the error  is unable to locate package sources

  • Anonymous
    September 17, 2014
    Hi vinay - The first thing I would suggest is to try to re-download the Windows Phone SDK setup package.  It is possible that your original package was corrupted when it was downloaded. If that doesn't help, then please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://onedrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look.

  • Anonymous
    November 16, 2014
    Thanks it worked for me

  • Anonymous
    November 18, 2014
    I'm trying to download the WP sdk 8 in a Virtual Machine with SO: Windows 8 Enterprise 64 bits, 4.00 GB Ram, and 60.00 GB HDD, but the download keep freezing when applying: Windows Phone SDk 8.0 Assemblies. I have already tried all this methods even the workaround. Any idea why this is happening??

  • Anonymous
    November 18, 2014
    Hi Guilherme - Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://onedrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  • Anonymous
    September 11, 2015
    I'm a skinny kid with this funny name. I tried to install it so many times .tell me what is the actual size of file I have to download.

  • Anonymous
    January 08, 2016
    Hi there, this fixed the certificate issue but after that I'm getting a fatal error during installation error. How do I fix that?

  • Anonymous
    January 11, 2016
    Hi YaddVirus - Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://onedrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?