Cannot connect to VM due to authentication cert being invalid??Hello,<br><br>I am running Windows 2008 Datacenter with Hyper-V and have been working on two VM images.  One 2003, One Win2k..<br><br>I have been connecting to them via the Hyper-V console while I build the OS's out.  I just tried to connect again and I now get this error and I am unable to get a console on either system:<br><br><br>&quot;Cannot connect to the virtual machine because the authentication certificate is expired or invalid.  Would you like to try connecting again..  &quot;<br><br><br>Any idea how to res<a id=EditorSubmit class=target><span class=label></span></a>olve this error??  Thanks<br> © 2009 Microsoft Corporation. All rights reserved.Thu, 15 Oct 2009 13:19:11 Z1a3e8f1b-379b-4569-9b39-bb568d2a7e3fhttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#1a3e8f1b-379b-4569-9b39-bb568d2a7e3fhttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#1a3e8f1b-379b-4569-9b39-bb568d2a7e3froachahttp://social.technet.microsoft.com/Profile/en-US/?user=roachaCannot connect to VM due to authentication cert being invalid??Hello,<br><br>I am running Windows 2008 Datacenter with Hyper-V and have been working on two VM images.  One 2003, One Win2k..<br><br>I have been connecting to them via the Hyper-V console while I build the OS's out.  I just tried to connect again and I now get this error and I am unable to get a console on either system:<br><br><br>&quot;Cannot connect to the virtual machine because the authentication certificate is expired or invalid.  Would you like to try connecting again..  &quot;<br><br><br>Any idea how to res<a id=EditorSubmit class=target><span class=label></span></a>olve this error??  Thanks<br> Mon, 13 Oct 2008 18:41:02 Z2008-10-13T18:41:02Zhttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#ca987df2-24b4-4880-8557-88494b1d984chttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#ca987df2-24b4-4880-8557-88494b1d984cChang Yinhttp://social.technet.microsoft.com/Profile/en-US/?user=Chang%20YinCannot connect to VM due to authentication cert being invalid??<span style="font-size:10pt;font-family:'Verdana','sans-serif'">Hello,</span> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">This problem may occur if the client machine' time is not synchronized with the time server. If you are in the Active Directory domain, the time server is the PDC.</span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">For example, if the client machine's time is 10:00 and the Hyper-V server's time is 11:00, the authentication certificate may be expired.</span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">You can firstly check if the client machine and the Hyper-V server are at the same time. If they don't match, try the following command on the client machine and on the Hyper-V server to see how it goes:</span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Net time /setsntp:&lt;PDC or other time server&gt;</span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Net stop w32time</span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Net start w32time</span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Best regards,</span></p><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Chang Yin</span>Wed, 15 Oct 2008 12:04:51 Z2008-10-15T12:04:51Zhttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#0328ed7f-8a8c-4cb1-81a5-66f23034bf4chttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#0328ed7f-8a8c-4cb1-81a5-66f23034bf4cSnowdogntxhttp://social.technet.microsoft.com/Profile/en-US/?user=SnowdogntxCannot connect to VM due to authentication cert being invalid??<p> Rocha,</p> <p>Here is what you need to do, there is a certificate for the Hyper-V Virtual Machine Management service that has expired. By default the certificate is a self signed certificate and is only good for one year. Here is how to resolve it:<br><br>1) Open Services.msc and go to the Hyper-V Virtual Machine Management service and stop the service.<br>2) Next go to Start - Run and enter MMC - Ok<br>3) In the MMC go to File - Add/Remove Snap-in, in the list of Available snap-ins select Certificates then Add.<br>4) In the next window select Service Account and Next. In the Select Computer select the default of Local Computer then Next.<br>5) Now under the Service Account drill down to the Hyper-V Virtual Machine Management and select it then Finish and OK.<br>6) Now in the left hand pane expand Certificates, vmms\Personal and highlight Certificates. In the right hand pane double click on the certificate, should show the Issued To as the host machine name.<br>7) On the General tab of the certificate at the bottom it should show Valid from and a starting and ending date. The problem is that the certificate has expired. <br>8) Now close the window for the certificate and then in the right hand pane right click and select delete.<br>9) Go back to the Services.msc and restart the Hyper-V Virtual Machine Management service.<br>10) Back to the MMC console and refresh the Personal\Certificates and you should see a new one there. Double click on it and verify the new valid dates.<br>11) To be able to access the VM's now you will either have to restart the VM or simply use the save state then start the VM back up.<br><br>Hope this helps.<br><br>Mark<br><br></p>Wed, 11 Feb 2009 21:21:30 Z2009-02-11T21:21:30Zhttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#bac883c4-bd8b-44b2-918c-bdf00f0899d1http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#bac883c4-bd8b-44b2-918c-bdf00f0899d1Frank Nilsenhttp://social.technet.microsoft.com/Profile/en-US/?user=Frank%20NilsenCannot connect to VM due to authentication cert being invalid??Renewing the certificate works superb!<br>Thanks! <hr class=sig> fnilsenMon, 16 Feb 2009 09:54:53 Z2009-02-16T09:55:28Zhttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#2b61c5e5-403e-4eaa-b001-e510094813e0http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#2b61c5e5-403e-4eaa-b001-e510094813e0jglaznerhttp://social.technet.microsoft.com/Profile/en-US/?user=jglaznerCannot connect to VM due to authentication cert being invalid??Hi Mark,<br>I'm have the same problem as Rocha, however my certificate is not expired.  <br>I double checked the dates &amp; times and they are within minutes of each other, so I don't think it's that.<br>I'm also using windows server core edition, so i used the mmc and connected to the remote server and deleted the cert anyway (just to make sure) however when I try and connect to the vm again using the Hyper-V snap in I just keeping getting the same stupid error about the certificate.  Any Ideas here?<br><br>Jed.<br><br> Tue, 17 Feb 2009 22:12:41 Z2009-02-17T22:12:41Zhttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#8761f464-1e72-489b-a0f8-d3659203a0e5http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#8761f464-1e72-489b-a0f8-d3659203a0e5Christopher Eck [MSFT]http://social.technet.microsoft.com/Profile/en-US/?user=Christopher%20Eck%20%5bMSFT%5dCannot connect to VM due to authentication cert being invalid??  To regenerate the self-signed server certificate, try stopping and re-starting the vmms service.  It should recognize that the certificate has expired (or is otherwise invalid) and generate a new one.<hr class="sig">This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.Thu, 19 Feb 2009 21:24:07 Z2009-02-19T21:24:07Zhttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#3c743008-b0bd-4f4f-9d7e-d516a31f5cfahttp://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f#3c743008-b0bd-4f4f-9d7e-d516a31f5cfaUltimaHosts.comhttp://social.technet.microsoft.com/Profile/en-US/?user=UltimaHosts.comCannot connect to VM due to authentication cert being invalid??Solution works great thanks! Is there any way to generate the certificate so it doesn't expire?Thu, 15 Oct 2009 13:19:11 Z2009-10-15T13:19:11Z