Blame SOURCES/0026-Document-key-cert-file-owner-and-mode-options.patch

1495bf
From a05cc4f346011697b3a4b49abad809b00bc1105c Mon Sep 17 00:00:00 2001
1495bf
From: Rob Crittenden <rcritten@redhat.com>
1495bf
Date: Mon, 20 May 2019 16:37:23 -0400
1495bf
Subject: [PATCH 26/29] Document key/cert file owner and mode options
1495bf
1495bf
The owner and permission options were available but not
1495bf
documented either on the command-line or in the man page.
1495bf
1495bf
Affects request, resubmit and start-tracking commands.
1495bf
1495bf
https://bugzilla.redhat.com/show_bug.cgi?id=1549585
1495bf
---
1495bf
 src/getcert-request.1.in        |  8 ++++++++
1495bf
 src/getcert-resubmit.1.in       |  8 ++++++++
1495bf
 src/getcert-start-tracking.1.in |  8 ++++++++
1495bf
 src/getcert.c                   | 12 ++++++++++++
1495bf
 4 files changed, 36 insertions(+)
1495bf
1495bf
diff --git a/src/getcert-request.1.in b/src/getcert-request.1.in
1495bf
index 8269b78..691ba35 100644
1495bf
--- a/src/getcert-request.1.in
1495bf
+++ b/src/getcert-request.1.in
1495bf
@@ -208,6 +208,14 @@ one to fail.
1495bf
 \fB\-v\fR
1495bf
 Be verbose about errors.  Normally, the details of an error received from
1495bf
 the daemon will be suppressed if the client can make a diagnostic suggestion.
1495bf
+\fB\-o\fR OWNER, --key-owner=OWNER
1495bf
+After generation set the owner on the private key file or database to OWNER.
1495bf
+\fB\-m\fR MODE, --key-perms=MODE
1495bf
+After generation set the file permissions on the private key file or database to MODE.
1495bf
+\fB\-O\fR OWNER, --cert-owner=OWNER
1495bf
+After generation set the owner on the certificate file or database to OWNER.
1495bf
+\fB\-M\fR MODE, --cert-perms=MODE
1495bf
+After generation set the file permissions on the certificate file or database to MODE.
1495bf
 
1495bf
 .SH NOTES
1495bf
 Locations specified for key and certificate storage need to be
1495bf
diff --git a/src/getcert-resubmit.1.in b/src/getcert-resubmit.1.in
1495bf
index 62d5f28..89ea609 100644
1495bf
--- a/src/getcert-resubmit.1.in
1495bf
+++ b/src/getcert-resubmit.1.in
1495bf
@@ -145,6 +145,14 @@ one to fail.
1495bf
 \fB\-v\fR
1495bf
 Be verbose about errors.  Normally, the details of an error received from
1495bf
 the daemon will be suppressed if the client can make a diagnostic suggestion.
1495bf
+\fB\-o\fR OWNER, --key-owner=OWNER
1495bf
+After generation set the owner on the private key file or database to OWNER.
1495bf
+\fB\-m\fR MODE, --key-perms=MODE
1495bf
+After generation set the file permissions on the private key file or database to MODE.
1495bf
+\fB\-O\fR OWNER, --cert-owner=OWNER
1495bf
+After generation set the owner on the certificate file or database to OWNER.
1495bf
+\fB\-M\fR MODE, --cert-perms=MODE
1495bf
+After generation set the file permissions on the certificate file or database to MODE.
1495bf
 
1495bf
 .SH BUGS
1495bf
 Please file tickets for any that you find at https://fedorahosted.org/certmonger/
1495bf
diff --git a/src/getcert-start-tracking.1.in b/src/getcert-start-tracking.1.in
1495bf
index 9daeed3..e1c9dd4 100644
1495bf
--- a/src/getcert-start-tracking.1.in
1495bf
+++ b/src/getcert-start-tracking.1.in
1495bf
@@ -181,6 +181,14 @@ the attempt to obtain a new one to fail.
1495bf
 \fB\-v\fR
1495bf
 Be verbose about errors.  Normally, the details of an error received from
1495bf
 the daemon will be suppressed if the client can make a diagnostic suggestion.
1495bf
+\fB\-o\fR OWNER, --key-owner=OWNER
1495bf
+After generation set the owner on the private key file or database to OWNER.
1495bf
+\fB\-m\fR MODE, --key-perms=MODE
1495bf
+After generation set the file permissions on the private key file or database to MODE.
1495bf
+\fB\-O\fR OWNER, --cert-owner=OWNER
1495bf
+After generation set the owner on the certificate file or database to OWNER.
1495bf
+\fB\-M\fR MODE, --cert-perms=MODE
1495bf
+After generation set the file permissions on the certificate file or database to MODE.
1495bf
 
1495bf
 .SH NOTES
1495bf
 Locations specified for key and certificate storage need to be
1495bf
diff --git a/src/getcert.c b/src/getcert.c
1495bf
index 03af587..bddba29 100644
1495bf
--- a/src/getcert.c
1495bf
+++ b/src/getcert.c
1495bf
@@ -4743,6 +4743,10 @@ help(const char *twopartcmd, const char *category)
1495bf
 		N_("  -a	NSS database in which to store the CA's certificates\n"),
1495bf
 		N_("  -w	try to wait for the certificate to be issued\n"),
1495bf
 		N_("  -v	report all details of errors\n"),
1495bf
+		N_("  -o OWNER	owner information for private key\n"),
1495bf
+		N_("  -m MODE	file permissions for private key\n"),
1495bf
+		N_("  -O OWNER	owner information for certificate\n"),
1495bf
+		N_("  -M MODE	file permissions for certificate\n"),
1495bf
 		NULL,
1495bf
 	};
1495bf
 	const char *start_tracking_help[] = {
1495bf
@@ -4793,6 +4797,10 @@ help(const char *twopartcmd, const char *category)
1495bf
 		N_("  -a	NSS database in which to store the CA's certificates\n"),
1495bf
 		N_("  -w	try to wait for the certificate to be issued\n"),
1495bf
 		N_("  -v	report all details of errors\n"),
1495bf
+		N_("  -o OWNER	owner information for private key\n"),
1495bf
+		N_("  -m MODE	file permissions for private key\n"),
1495bf
+		N_("  -O OWNER	owner information for certificate\n"),
1495bf
+		N_("  -M MODE	file permissions for certificate\n"),
1495bf
 		NULL,
1495bf
 	};
1495bf
 	const char *stop_tracking_help[] = {
1495bf
@@ -4865,6 +4873,10 @@ help(const char *twopartcmd, const char *category)
1495bf
 		N_("  -a	NSS database in which to store the CA's certificates\n"),
1495bf
 		N_("  -w	try to wait for the certificate to be issued\n"),
1495bf
 		N_("  -v	report all details of errors\n"),
1495bf
+		N_("  -o OWNER	owner information for private key\n"),
1495bf
+		N_("  -m MODE	file permissions for private key\n"),
1495bf
+		N_("  -O OWNER	owner information for certificate\n"),
1495bf
+		N_("  -M MODE	file permissions for certificate\n"),
1495bf
 		NULL,
1495bf
 	};
1495bf
 	const char *rekey_help[] = {
1495bf
-- 
1495bf
2.17.2
1495bf