{"id":17909647,"url":"https://github.com/s1lver/rr-grpc-tls-php","last_synced_at":"2026-04-17T05:03:33.999Z","repository":{"id":37448542,"uuid":"505795956","full_name":"s1lver/rr-grpc-tls-php","owner":"s1lver","description":"Implementing a simple example of client-server communication using TLS in Docker","archived":false,"fork":false,"pushed_at":"2022-10-09T17:04:13.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T06:48:17.231Z","etag":null,"topics":["docker","grpc","php8","roadrunner","tls"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/s1lver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-21T10:31:22.000Z","updated_at":"2023-01-09T19:43:46.000Z","dependencies_parsed_at":"2023-01-19T11:30:20.140Z","dependency_job_id":null,"html_url":"https://github.com/s1lver/rr-grpc-tls-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s1lver/rr-grpc-tls-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lver%2Frr-grpc-tls-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lver%2Frr-grpc-tls-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lver%2Frr-grpc-tls-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lver%2Frr-grpc-tls-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s1lver","download_url":"https://codeload.github.com/s1lver/rr-grpc-tls-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lver%2Frr-grpc-tls-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265218753,"owners_count":23729528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","grpc","php8","roadrunner","tls"],"created_at":"2024-10-28T19:27:24.106Z","updated_at":"2026-04-17T05:03:33.918Z","avatar_url":"https://github.com/s1lver.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using gRPC with TLS in Roadrunner\n\nImplementing a simple example of client-server communication using TLS in Docker in PHP\n\nThis example is based on https://github.com/spiral/roadrunner-grpc/tree/master/example/echo\n\n## Setup\n\nBuild the client part\n```bash\nmake build-client\n```\n\nBuild the server part\n```bash\nmake build-server\n```\n\n## Additional commands\n\nStop a running container with a server \n\n```bash\nmake down-server\n```\n\nStop a running container with a client \n```bash\nmake down-client\n```\n\nRunning container with a server\n```bash\nmake start-server\n```\n\nRunning container with a client\n```bash\nmake start-client\n```\n\n## Create certificates\n\n```bash\ndocker exec -it client-php bash\nmkcert --install\nmkcert -client localhost 127.0.0.1 ::1 192.168.231.2\nmkcert localhost 127.0.0.1 ::1 192.168.231.2\nmkcert -CAROOT\ncp /root/.local/share/mkcert/rootCA.pem ./rootCA.pem\n```\n\n## Test connect\n\n```bash\ndocker exec -it client-php php ping.php\n```\nor\n\n```bash\ndocker exec -it client-php bash\nphp ping.php\n```\n\nResponse\n\n\u003e Status code: 0\n\u003e \n\u003e Status details:\n\u003e \n\u003e 2022-06-21 13:44:39: PONG","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs1lver%2Frr-grpc-tls-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs1lver%2Frr-grpc-tls-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs1lver%2Frr-grpc-tls-php/lists"}