Azure-docs: PhpRedis

Created on 12 May 2020  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

Is the note about PhpRedis not supporting TLS still up to date? Can you provide any references regarding this?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author cachsvc product-question triaged

All 7 comments

@atrauzzi We are checking this and will get back to you.

Much appreciated, thanks!

@atrauzzi @NavtejSaini-MSFT The documentation is not correct.

You can (and we do in three environments including Production) use TLS with PHPRedis >= 5.0.0.

You simply append "tls://" to the begging of the host.

$redis->connect("tls://yourrediscache.windows.net", 6380, 1, NULL, 100);

FWIW you can even choose a specific tls using tls1.2:// but you shouldn't need to. We are running PHP 5.3 and PhpRedis 5.2 and we disabled non-ssl and enforced TLS 1.2 in Azure many months ago.

For reference, the official guide specifies that since version 5 you can specify a schema.

https://github.com/phpredis/phpredis#connect-open

Probably worth updating the doc to reflect this then?

Yes, I stumbled upon this issue as I was about to suggest exactly this myself. The documentation is very misleading.

@yegu-ms Please provide the guidance here. If we need to go ahead and edit document to bring more clarity, please do so.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrdfuse picture mrdfuse  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

varma31 picture varma31  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments