today i ran into iis 7.5 ssl certificate binding error 0x80070520 after running sysprep to create a new bundled ec2 ami. first i launched a windows 2008 r2 instance from an official amazon ami, installed iis and imported our wildcard ssl certificate to be used on future websites. launched the ec2config service and ran sysprep. created a new ami (image) of this instance, then launched a new instance based off this ami. in iis manager, tried to edit the https binding of a site and got the error:
a specified logon session does not exist. it may already have been terminated. (exception from hresult: 0x80070520)
this actually has nothing to do with amazon and is caused by sysprep changing the machine sid which i believe affects the private key of the certificate rendering it invalid. you’ll need to remove the certificate and re-import.
here is a little bit of information about the duplicate sid myth from mark russinovich (the guy who wrote all the sysinternals software) –
“the more i thought about it, the more i became convinced that machine sid duplication – having multiple computers with the same machine sid – doesn’t pose any problem, security or otherwise. i took my conclusion to the windows security and deployment teams and no one could come up with a scenario where two systems with the same machine sid, whether in a workgroup or a domain, would cause an issue. at that point the decision to retire newsid became obvious.”
a workaround to this issue is to not import the certificate prior to sysprepping, and instead use this powershell script upon first boot to import the certificate.
when you're a little too careless about virtualizing your domain controllers, cloning, migrating, backing up and restoring, returning from vacation… Read More
systemd is new service manager for linux. it's a replacement for all previous init systems (sysv/sysvinit & ubuntu's upstart) and… Read More