# Upgrade from 7.16.2 to 7.171.7

**URL:** <https://discuss.elastic.co/t/upgrade-from-7-16-2-to-7-171-7/320439>\
**Category:** Elasticsearch\
**Created:** [December 5, 2022, 5:56am UTC](https://discuss.elastic.co/t/upgrade-from-7-16-2-to-7-171-7/320439 "2022-12-05T05:56:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahere37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Post date:** [December 5, 2022, 5:56am UTC](https://discuss.elastic.co/t/upgrade-from-7-16-2-to-7-171-7/320439/1 "2022-12-05T05:56:04Z")

</div>

Hi, I have a three-node cluster version 716.2 and I want to upgrade it to 7.17.7. in my current cluster, TLS setting is activated by following:

```auto
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate 
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12 
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: http.p12

```

in the case of upgrading in this [link] ([Rolling upgrades | Elasticsearch Guide [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/rolling-upgrades.html)), it is said that we should copy old config folder data to the new elasticsearch config file. it means we should also copy lastic-certificates.p12 , http.p12 ,role\_mapping, role.yml, users, users\_roles , ... files. Is it true?  
Also, when we were installing elasticsearch 7.16.2, we use below commands to set keystore password, Is it needed to do them again in the new version?

> elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure\_password  
> elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure\_password  
> elasticsearch-keystore add xpack.security.http.ssl.keystore.secure\_password

I will be so appreciated of your helpful guide  
Regards

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 5, 2022, 7:30am UTC](https://discuss.elastic.co/t/upgrade-from-7-16-2-to-7-171-7/320439/2 "2022-12-05T07:30:12Z")

</div>

How did you install Elasticsearch?

---

<div class="post-metadata">

**Author:** ![sahere37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Post date:** [December 5, 2022, 12:14pm UTC](https://discuss.elastic.co/t/upgrade-from-7-16-2-to-7-171-7/320439/3 "2022-12-05T12:14:44Z")

</div>

Hi  
first I installed elasticsearch 7.16.2 in three windows servers and config the elasticsearch.yml to create the desired cluster as below

> cluster.name  
> node.name  
> network.host  
> discovery.seed\_hosts  
> cluster.initial\_master\_nodes

then I started the nodes and cluster state was green.  
at the next step I created the certificate base on [link](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/security-basic-setup.html) and then I start the cluster and every thing was ok.  
at the next step I did the steps of [link](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/security-basic-setup-https.html) to setup https.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 5, 2022, 7:57pm UTC](https://discuss.elastic.co/t/upgrade-from-7-16-2-to-7-171-7/320439/4 "2022-12-05T19:57:24Z")

</div>

Ok you used the zip.

In that case;

> [@sahere37](#):
>
> it is said that we should copy old config folder data to the new elasticsearch config file. it means we should also copy lastic-certificates.p12 , http.p12 ,role\_mapping, role.yml, users, users\_roles , ... files. Is it true?

Yes you need to do that.

---

<div class="post-metadata">

**Author:** ![sahere37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Post date:** [December 26, 2022, 7:37am UTC](https://discuss.elastic.co/t/upgrade-from-7-16-2-to-7-171-7/320439/5 "2022-12-26T07:37:07Z")

</div>

thanks

---

<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:** [January 23, 2023, 7:37am UTC](https://discuss.elastic.co/t/upgrade-from-7-16-2-to-7-171-7/320439/6 "2023-01-23T07:37:29Z")

</div>

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