What I have found is that "not so common" domain names (names other than example.com, .net, .org, etc) do not behave well with openam.
Using openam version 11, I set up the hosts file with my machine's fqdn (fully qualified domain name), which is in a domain called something like "projectname.local".
When I deploy openam and try to create default configurations, it fails immediately saying something like "invalid cookie domain".
If I try to circumvent this by creating a new configuration, I see right away that openam thinks my domain is called ".local" instead of "projectname.local" in one of the early configuration forms.
It's only when I change the domain name in hosts to something like "example.com" (like the getting started guide tells you to) that default configuration runs ok.
Otherwise, i couldn't get it to work.