github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/transport/internet/tls/config.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.transport.internet.tls; 4 option csharp_namespace = "V2Ray.Core.Transport.Internet.Tls"; 5 option go_package = "v2ray.com/core/transport/internet/tls"; 6 option java_package = "com.v2ray.core.transport.internet.tls"; 7 option java_multiple_files = true; 8 9 message Certificate { 10 // TLS certificate in x509 format. 11 bytes Certificate = 1; 12 13 // TLS key in x509 format. 14 bytes Key = 2; 15 16 enum Usage { 17 ENCIPHERMENT = 0; 18 AUTHORITY_VERIFY = 1; 19 AUTHORITY_ISSUE = 2; 20 } 21 22 Usage usage = 3; 23 } 24 25 message Config { 26 // Whether or not to allow self-signed certificates. 27 bool allow_insecure = 1; 28 29 // Whether or not to allow insecure cipher suites. 30 bool allow_insecure_ciphers = 5; 31 32 // List of certificates to be served on server. 33 repeated Certificate certificate = 2; 34 35 // Override server name. 36 string server_name = 3; 37 38 // Lists of string as ALPN values. 39 repeated string next_protocol = 4; 40 41 // Whether or not to disable session (ticket) resumption. 42 bool disable_session_resumption = 6; 43 44 // If true, root certificates on the system will not be loaded for 45 // verification. 46 bool disable_system_root = 7; 47 }