I have followed the instructions in SSL with Self Hosted WCF Service. When I am trying to bind the certificate on Windows 7 using netsh as described in How to: Conf
I have found 4 possible causes for error 1312 in my port bindings:
The SSL cert is corrupt - you need to delete from the cert store and re-add.
The SSL cert is lacking a private key - you need to delete from the cert store and re-add the full public/private cert, or otherwise attach the private key to your certificate.
If installing on a pre-SP1 version of 2012R2, you may need KB 981506.
You may have added the SSL cert to your user store, and not the local machine cert store - delete from the user store and add to the machine store.