ระบบจะใช้ชุดใบรับรองรูทไคลเอ็นต์ที่เชื่อถือได้เมื่อตรวจสอบสิทธิ์ไคลเอ็นต์ คุณสามารถเลือกรับชุดรูทที่เชื่อถือได้นี้จากหน่วยงานที่เชื่อถือได้ เช่น Mozilla หรือติดตั้งชุดรูทที่ปัจจุบัน Google Internet Authority (G2) แนะนำ ในกรณีหลัง คุณอาจต้องอัปเดตใบรับรองรูทด้วยตนเองในบางครั้ง
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-05-26 UTC"],[[["This guide outlines the necessary steps to set up a Ruby-based gRPC server, including the required gems: `google-protobuf` and `grpc`."],["You'll need to download the service definition file (`booking_service.proto`) and organize it within a specific directory structure that includes `certificates`, `lib`, `protos`, and `server.rb`."],["Generating the necessary Ruby libraries from the service definition file using the `grpc_tools_ruby_protoc` command is required to implement the server."],["The server can be initially tested without TLS using the command `ruby server.rb --disable_tls`, but this is not recommended for production environments."],["Enabling TLS in production requires configuring the server with `server.pem`, `server.key`, and `trusted_client_roots.pem` files within the `certificates` directory, to ensure secure communication."]]],["The implementation requires the `google-protobuf` and `grpc` gems. Download the service definition, create the specified directory structure, and generate Ruby libraries using `grpc_tools_ruby_protoc`. TLS can be initially disabled using `--disable_tls` for testing. Production requires `server.pem`, `server.key`, and `trusted_client_roots.pem` within the certificates directory for TLS. The `trusted_client_roots.pem` may come from an authority like Mozilla or Google Internet Authority G2.\n"]]