# Error setting up HTTPS endpoint for WinRM

**URL:** <https://forum.ansible.com/t/error-setting-up-https-endpoint-for-winrm/23614>\
**Category:** Ansible Project\
**Created:** [February 1, 2017, 9:27pm UTC](https://forum.ansible.com/t/error-setting-up-https-endpoint-for-winrm/23614 "2017-02-01T21:27:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan.mensching](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@ryan.mensching](https://forum.ansible.com/u/ryan.mensching)\
**Post date:** [February 1, 2017, 9:27pm UTC](https://forum.ansible.com/t/error-setting-up-https-endpoint-for-winrm/23614/1 "2017-02-01T21:27:41Z")

</div>

I have been working on an issue with getting the HTTPS endpoint for WinRM to bind to the self signed cert the Ansible setup script creates. I’m pretty stumped at this point, it seems I had it working at one time but after rebuilding the workspace I am back to square one. All controls I can think of have been turned off, UAC, Firewall, CredSSP. Here is the log output:

.\ConfigureRemotingForAnsible.ps1 -Verbose  
VERBOSE: Verifying WinRM service.  
VERBOSE: PS Remoting is already enabled.  
(Legacy) Self-signed SSL certificate generated; thumbprint: XXXXXXXXXXXXX  
VERBOSE: Enabling SSL listener.  
New-WSManInstance : A specified logon session does not exist. It may already have been terminated.  
At D:\Users\wdesk.synctesting\downloads\ansible-devel\examples\scripts\ConfigureRemotingForAnsible.ps1:216 char:5

- New-WSManInstance -ResourceURI ‘winrm/config/Listener’ -SelectorSet $selecto …
- 

```auto

```

- CategoryInfo : InvalidOperation: (🙂 [New-WSManInstance], InvalidOperationException
- FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.NewWSManInstanceCommand

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [February 7, 2017, 10:11pm UTC](https://forum.ansible.com/t/error-setting-up-https-endpoint-for-winrm/23614/2 "2017-02-07T22:11:11Z")

</div>

What’s your operating system?
