Elasticsearch authentication failed error

I followed the steps mentioned in Kibana Shield Configuration.
Have u created the ssl certificates? Also check roles.yml file.Even the space alignment will create problem.

The required permissions for the kibana 4 server

kibana4_server:
cluster:
- all
indices:
- names: '*'
privileges:
- all

The required permissions for the kibana4_monitoring server

kibana4_monitoring:
cluster:
- all
indices:
- names: '*'
privileges:
- all