{"action":"created","issue":{"url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/32","labels_url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/32/comments","events_url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/32/events","html_url":"https://github.com/HewlettPackard/POSH-HPOneView/issues/32","id":99181511,"number":32,"title":"Unable to cast object of type","user":{"login":"aradzys","id":13659031,"avatar_url":"https://avatars.githubusercontent.com/u/13659031?v=3","gravatar_id":"","url":"https://api.github.com/users/aradzys","html_url":"https://github.com/aradzys","followers_url":"https://api.github.com/users/aradzys/followers","following_url":"https://api.github.com/users/aradzys/following{/other_user}","gists_url":"https://api.github.com/users/aradzys/gists{/gist_id}","starred_url":"https://api.github.com/users/aradzys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aradzys/subscriptions","organizations_url":"https://api.github.com/users/aradzys/orgs","repos_url":"https://api.github.com/users/aradzys/repos","events_url":"https://api.github.com/users/aradzys/events{/privacy}","received_events_url":"https://api.github.com/users/aradzys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-05T11:20:23Z","updated_at":"2015-08-07T14:47:19Z","closed_at":null,"body":"Hello,\r\n\r\nI wonder if you can help me.\r\n\r\nConnect-HPOVMgmt gives an error \r\n\r\nunknown error [Cannot create object of type \"HPOneView.PKI.SslCertificate\". Unable to cast object of type 'System.Management.Automation.PSObject' to type \r\n'System.String[]'.].\r\n\r\nPowershell V5\r\nLatest HPonview POSH release\r\n\r\nThanks,\r\n\r\nArturas"},"comment":{"url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/comments/128719190","html_url":"https://github.com/HewlettPackard/POSH-HPOneView/issues/32#issuecomment-128719190","issue_url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/32","id":128719190,"user":{"login":"ChrisLynchHP","id":6956305,"avatar_url":"https://avatars.githubusercontent.com/u/6956305?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisLynchHP","html_url":"https://github.com/ChrisLynchHP","followers_url":"https://api.github.com/users/ChrisLynchHP/followers","following_url":"https://api.github.com/users/ChrisLynchHP/following{/other_user}","gists_url":"https://api.github.com/users/ChrisLynchHP/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisLynchHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisLynchHP/subscriptions","organizations_url":"https://api.github.com/users/ChrisLynchHP/orgs","repos_url":"https://api.github.com/users/ChrisLynchHP/repos","events_url":"https://api.github.com/users/ChrisLynchHP/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisLynchHP/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T14:47:19Z","updated_at":"2015-08-07T14:47:19Z","body":"Thanks.  Can you also provide the output from $PSVersionTable?\r\n\r\nAlso, are you using the default Self-Signed Certificate, or have you created a new CA signed cert on your appliance?\r\n\r\nFrom: aradzys [mailto:notifications@github.com]\r\nSent: Thursday, August 6, 2015 10:55 PM\r\nTo: HewlettPackard/POSH-HPOneView <POSH-HPOneView@noreply.github.com>\r\nCc: Lynch, Chris (ES&A California) <chris.lynch@hp.com>\r\nSubject: Re: [POSH-HPOneView] Unable to cast object of type (#32)\r\n\r\nHere you go :) I've changed hostname as you can notice. I'm abe to ping\r\nhost and also get connected from test PC on the same network using\r\npowershell version4\r\n\r\nUnable to connect to 'xxxx1.xxx.net' due to unknown error [Cannot create\r\nobject of type \"HPOneView.PKI.SslCertificate\". Unable to cast object of\r\ntype 'System.Management.Automation.PSObject' to type 'System.String[]'.].\r\nat Connect-HPOVMgmt<Begin>,\r\nC:\\windows\\system32\\windowspowershell\\v1.0\\Modules\\HPOneView.120\\HPOneView.120.psm1:\r\nline 2201\r\nat <ScriptBlock>, <No file>: line 1\r\nUnable to connect to xxxx1.xxx.net' due to unknown error [Cannot create\r\nobject of type \"HPOneView.PKI.SslCertificate\". Unable to cast object of\r\ntype 'System.Management.Automation.PSObject' to type 'System.String[]'.].\r\nat Send-HPOVRequest<Begin>,\r\nC:\\windows\\system32\\windowspowershell\\v1.0\\Modules\\HPOneView.120\\HPOneView.120.psm1:\r\nline 1434\r\nat Connect-HPOVMgmt<Begin>,\r\nC:\\windows\\system32\\windowspowershell\\v1.0\\Modules\\HPOneView.120\\HPOneView.120.psm1:\r\nline 2187\r\nat <ScriptBlock>, <No file>: line 1\r\nCannot create object of type \"HPOneView.PKI.SslCertificate\". Unable to cast\r\nobject of type 'System.Management.Automation.PSObject' to type\r\n'System.String[]'.\r\nat Show-HPOVSSLCertificate<Process>,\r\nC:\\windows\\system32\\windowspowershell\\v1.0\\Modules\\HPOneView.120\\HPOneView.120.psm1:\r\nline 5372\r\nat Send-HPOVRequest<Begin>,\r\nC:\\windows\\system32\\windowspowershell\\v1.0\\Modules\\HPOneView.120\\HPOneView.120.psm1:\r\nline 1410\r\nat Connect-HPOVMgmt<Begin>,\r\nC:\\windows\\system32\\windowspowershell\\v1.0\\Modules\\HPOneView.120\\HPOneView.120.psm1:\r\nline 2187\r\nat <ScriptBlock>, <No file>: line 1\r\n\r\nOn Thu, Aug 6, 2015 at 5:45 PM, Chris Lynch <notifications@github.com>\r\nwrote:\r\n\r\n> Hmm... That didn't really provide me what I need. Can you do the following\r\n> and provide the output:\r\n>\r\n> $error | % {\r\n> write-host $_\r\n> write-host $_.ScriptStackTrace\r\n> }\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/HewlettPackard/POSH-HPOneView/issues/32#issuecomment-128399477>\r\n> .\r\n>\r\n\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/HewlettPackard/POSH-HPOneView/issues/32#issuecomment-128595532>.\r\n"}}