# Percona-release using http

**URL:** <https://forums.percona.com/t/percona-release-using-http/21508>\
**Category:** General Questions\
**Created:** [April 19, 2023, 12:57pm UTC](https://forums.percona.com/t/percona-release-using-http/21508 "2023-04-19T12:57:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adamo\_Tonete](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/adamo_tonete/32/6871_2.png) [@Adamo\_Tonete](https://forums.percona.com/u/Adamo_Tonete)\
**Post date:** [April 19, 2023, 12:57pm UTC](https://forums.percona.com/t/percona-release-using-http/21508/1 "2023-04-19T12:57:46Z")

</div>

Hi there,

I’m working on a psmdb implementation and I noticed that the command `sudo percona-release enable psmdb-50 release` is searching for http// (port 80) instead of https:// (443)  
For security reasons the access to port 80 is blocked in this environment.  
Is there any way to force https instead?

I’m aware I can download the .rpm and install it, but I’d like to take advantage of the tool.

Thanks

---

<div class="post-metadata">

**Author:** ![Evgeniy\_Patlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/evgeniy_patlan/32/41_2.png) [@Evgeniy\_Patlan](https://forums.percona.com/u/Evgeniy_Patlan)\
**Post date:** [April 19, 2023, 1:13pm UTC](https://forums.percona.com/t/percona-release-using-http/21508/2 "2023-04-19T13:13:30Z")

</div>

> [@Adamo\_Tonete](#):
>
> psmdb-50 release

Hey @Adamo_Tonete  
Thanks for reporting this.  
We will fix this issue for the next release but currently on your system you can do the following:

`sudo sed -i 's|http:|https:|g' /usr/bin/percona--release`

---

<div class="post-metadata">

**Author:** ![Ceri\_Williams](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ceri_williams/32/1218_2.png) [@Ceri\_Williams](https://forums.percona.com/u/Ceri_Williams)\
**Post date:** [April 8, 2024, 10:11am UTC](https://forums.percona.com/t/percona-release-using-http/21508/3 "2024-04-08T10:11:52Z")

</div>

It is possible to do this without editing a package-maintained file, there is support for overriding certain variables via `/etc/default/percona-release`.

The best way is to do this before installing `percona-release` so that the release repos are set to use TLS as well.

```sh
cat <<EOS | sudo tee -a /etc/default/percona-release
URL="https://repo.percona.com"
EOS

```

If done afterwards then the `prel` and `release` repos that are created on install will need manual adjustment.  
Something along the lines of the following should fix these:

```sh
find /etc/{apt/sources.list.d,yum.repos.d} -type f -exec grep -Fl 'http://repo.percona.com' {} \; 2>/dev/null | xargs sed -i 's^http://^https://^g'

```
