Skip to content

Commit 6f4ceed

Browse files
committed
YDB support issue. Fix "PEM encoding" -> "PEM encoded"
1 parent 0ad0248 commit 6f4ceed

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

ydb/apps/dstool/lib/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def add_host_access_options(self, parser, with_endpoint=True):
159159
g.add_argument('--mon-port', type=int, default=8765, metavar='PORT', help='HTTP monitoring port for viewer JSON access')
160160
g.add_argument('--mon-protocol', type=str, metavar='PROTOCOL', choices=('http', 'https'), help='HTTP monitoring protocol for viewer JSON access')
161161
g.add_argument('--token-file', type=FileType(encoding='ascii'), metavar='PATH', help='Path to token file')
162-
g.add_argument('--ca-file', metavar='PATH', dest='cafile', type=str, help='Path to a file containing the PEM encoding of the server root certificates for tls connections.')
162+
g.add_argument('--ca-file', metavar='PATH', dest='cafile', type=str, help='Path to a file containing PEM encoded root certificates for tls connections.')
163163
g.add_argument('--http', action='store_true', help='Use HTTP to connect to blob storage controller instead of GRPC')
164164
g.add_argument('--http-timeout', type=int, default=5, help='Timeout for blocking socket I/O operations during HTTP(s) queries')
165165
g.add_argument('--insecure', action='store_true', help='Allow insecure HTTPS fetching')

ydb/core/driver_lib/run/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ int MainRun(const TKikimrRunConfig& runConfig, std::shared_ptr<TModuleFactories>
8989
configParser.SetupGlobalOpts(opts);
9090
NMsgBusProxy::TMsgBusClientConfig mbusConfig;
9191
mbusConfig.ConfigureLastGetopt(opts, "mb-");
92-
opts.AddLongOption("ca-file", "Path to a file containing the PEM encoding of the server root certificates for tls connections.\n").RequiredArgument("PATH");
93-
opts.AddLongOption("client-cert-file", "Path to a file containing the PEM encoding of the client certificate for tls connections.\n").RequiredArgument("PATH");
94-
opts.AddLongOption("client-cert-key-file", "Path to a file containing the PEM encoding of the client certificate private key for tls connections.\n").RequiredArgument("PATH");
92+
opts.AddLongOption("ca-file", "Path to a file containing PEM encoded root certificates for tls connections.\n").RequiredArgument("PATH");
93+
opts.AddLongOption("client-cert-file", "Path to a file containing PEM encoded client certificate for tls connections.\n").RequiredArgument("PATH");
94+
opts.AddLongOption("client-cert-key-file", "Path to a file containing PEM encoded client certificate private key for tls connections.\n").RequiredArgument("PATH");
9595
NDriverClient::HideOptions(opts);
9696
opts.AddLongOption('s', "server", "Server address to connect (default $KIKIMR_SERVER)").RequiredArgument("ADDR[:NUM]");
9797
opts.AddLongOption('k', "token", "Security token").RequiredArgument("TOKEN");

ydb/public/lib/ydb_cli/commands/ydb_profile.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -740,13 +740,13 @@ void TCommandProfileCommon::Config(TConfig& config) {
740740
.RequiredArgument("STR").StoreResult(&IamEndpoint);
741741
}
742742
opts.AddLongOption("ca-file",
743-
"Path to a file containing the PEM encoding of the server root certificates for tls connections.")
743+
"Path to a file containing PEM encoded root certificates for tls connections.")
744744
.RequiredArgument("PATH").StoreResult(&CaCertsFile);
745745
opts.AddLongOption("client-cert-file",
746-
"Path to a file containing the PEM encoding of the client certificate for tls connections")
746+
"Path to a file containing PEM encoded client certificate for tls connections")
747747
.RequiredArgument("PATH").StoreResult(&ClientCertFile);
748748
opts.AddLongOption("client-cert-key-file",
749-
"Path to a file containing the PEM encoding of the client certificate private key for tls connections")
749+
"Path to a file containing PEM encoded client certificate private key for tls connections")
750750
.RequiredArgument("PATH").StoreResult(&ClientCertPrivateKeyFile);
751751
if (!IsStdinInteractive()) {
752752
GetOptionsFromStdin();
@@ -1100,11 +1100,11 @@ void TCommandUpdateProfile::Config(TConfig& config) {
11001100
if (config.UseIamAuth) {
11011101
opts.AddLongOption("no-iam-endpoint", "Delete endpoint of IAM service from the profile").StoreTrue(&NoIamEndpoint);
11021102
}
1103-
opts.AddLongOption("no-ca-file", "Delete path to file containing the PEM encoding of the "
1103+
opts.AddLongOption("no-ca-file", "Delete path to file containing PEM encoded "
11041104
"server root certificates for tls connections from the profile").StoreTrue(&NoCaCertsFile);
1105-
opts.AddLongOption("no-client-cert-file", "Delete path to a file containing the PEM encoding of the "
1105+
opts.AddLongOption("no-client-cert-file", "Delete path to a file containing PEM encoded "
11061106
"client certificate for tls connections").StoreTrue(&NoClientCertFile);
1107-
opts.AddLongOption("no-client-cert-key-file", "Delete path to a file containing the PEM encoding of the "
1107+
opts.AddLongOption("no-client-cert-key-file", "Delete path to a file containing PEM encoded "
11081108
"client certificate private key for tls connections").StoreTrue(&NoClientCertPrivateKeyFile);
11091109
}
11101110

ydb/public/lib/ydb_cli/common/root.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ void TClientCommandRootBase::Config(TConfig& config) {
2222
opts.AddLongOption('t', "time", "Show request execution time").NoArgument().SetFlag(&TimeRequests);
2323
opts.AddLongOption('o', "progress", "Show progress of long requests").NoArgument().SetFlag(&ProgressRequests);
2424
opts.AddLongOption("ca-file",
25-
"Path to a file containing the PEM encoding of the server root certificates for tls connections.\n"
25+
"Path to a file containing PEM encoded root certificates for tls connections.\n"
2626
"If this parameter is empty, the default roots will be used.")
2727
.RequiredArgument("PATH").StoreResult(&CaCertsFile);
2828
opts.AddLongOption("client-cert-file",
29-
"Path to a file containing the PEM encoding of the client certificate for tls connections")
29+
"Path to a file containing PEM encoded client certificate for tls connections")
3030
.RequiredArgument("PATH").StoreResult(&ClientCertFile);
3131
opts.AddLongOption("client-cert-key-file",
32-
"Path to a file containing the PEM encoding of the client certificate private key for tls connections")
32+
"Path to a file containing PEM encoded client certificate private key for tls connections")
3333
.RequiredArgument("PATH").StoreResult(&ClientCertPrivateKeyFile);
3434

3535
opts.SetCustomUsage(config.ArgV[0]);

ydb/public/sdk/cpp/client/ydb_driver/driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TDriverConfig {
4848
//! default: 0
4949
TDriverConfig& SetMaxClientQueueSize(size_t sz);
5050
//! Enable Ssl.
51-
//! caCerts - The buffer containing the PEM encoding of the server root certificates.
51+
//! caCerts - The buffer containing PEM encoded root certificates.
5252
//! If this parameter is empty, the default roots will be used.
5353
TDriverConfig& UseSecureConnection(const TStringType& caCerts = TStringType());
5454
TDriverConfig& UseClientCertificate(const TStringType& clientCert, const TStringType& clientPrivateKey);

0 commit comments

Comments
 (0)