# Security feature for 7.1, failed to load plugin class \[org.elasticsearch.xpack.core.XPackPlugin\]

**URL:** <https://discuss.elastic.co/t/security-feature-for-7-1-failed-to-load-plugin-class-org-elasticsearch-xpack-core-xpackplugin/187139>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [June 24, 2019, 1:15pm UTC](https://discuss.elastic.co/t/security-feature-for-7-1-failed-to-load-plugin-class-org-elasticsearch-xpack-core-xpackplugin/187139 "2019-06-24T13:15:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh\_Sharma\_IIT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_sharma_iit/32/48921_2.png) [@Saurabh\_Sharma\_IIT](https://discuss.elastic.co/u/Saurabh_Sharma_IIT)\
**Post date:** [June 24, 2019, 1:15pm UTC](https://discuss.elastic.co/t/security-feature-for-7-1-failed-to-load-plugin-class-org-elasticsearch-xpack-core-xpackplugin/187139/1 "2019-06-24T13:15:15Z")

</div>

Hi, I am following tutorial given on

> **[Secure Elasticsearch with TLS encryption and role-based access control](https://www.elastic.co/blog/getting-started-with-elasticsearch-security)**
>
> Secure your Elasticsearch clusters -- and the other components of the Elastic Stack -- with node-to-node TLS and role-based access control (RBAC). These features and more are now available free with the default distribution of Elasticsearch and...

for adding security to elastic search and kibana.  
After running this command  
bin/elasticsearch-certutil cert -out config/elastic-certificates.p12 -pass ""  
on windows, when I follow next step i.e.  
running bin\elasticsearch

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [June 25, 2019, 12:53am UTC](https://discuss.elastic.co/t/security-feature-for-7-1-failed-to-load-plugin-class-org-elasticsearch-xpack-core-xpackplugin/187139/2 "2019-06-25T00:53:17Z")

</div>

It looks like you've cut that error off just before the interesting part.  
Is there any more info available?

---

<div class="post-metadata">

**Author:** ![Saurabh\_Sharma\_IIT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_sharma_iit/32/48921_2.png) [@Saurabh\_Sharma\_IIT](https://discuss.elastic.co/u/Saurabh_Sharma_IIT)\
**Post date:** [June 25, 2019, 10:04am UTC](https://discuss.elastic.co/t/security-feature-for-7-1-failed-to-load-plugin-class-org-elasticsearch-xpack-core-xpackplugin/187139/3 "2019-06-25T10:04:40Z")

</div>

Hi, thank you for your response.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [June 25, 2019, 12:03pm UTC](https://discuss.elastic.co/t/security-feature-for-7-1-failed-to-load-plugin-class-org-elasticsearch-xpack-core-xpackplugin/187139/4 "2019-06-25T12:03:06Z")

</div>

Please don't post images of text as they are hard to read, may not display  
correctly for everyone, and not searchable.

Instead paste the text and format it with \</\> icon, and check the preview  
window to make sure it's properly formatted before posting it. This makes it  
more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

The error message is pretty clear, that it can't find the PKCS12 truststore ( You get a `NoSuchFileException` ) and your configuration seems to be wrong. You might have misspelled `elastic-certificates.p1` ( instead of elastic-certificates.p12` )

---

<div class="post-metadata">

**Author:** ![Saurabh\_Sharma\_IIT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_sharma_iit/32/48921_2.png) [@Saurabh\_Sharma\_IIT](https://discuss.elastic.co/u/Saurabh_Sharma_IIT)\
**Post date:** [June 26, 2019, 5:12am UTC](https://discuss.elastic.co/t/security-feature-for-7-1-failed-to-load-plugin-class-org-elasticsearch-xpack-core-xpackplugin/187139/5 "2019-06-26T05:12:18Z")

</div>

Thank you Ioannis for help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 24, 2019, 5:12am UTC](https://discuss.elastic.co/t/security-feature-for-7-1-failed-to-load-plugin-class-org-elasticsearch-xpack-core-xpackplugin/187139/6 "2019-07-24T05:12:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
