Add a notice to restart ipa services after certs are installed

Adding notice for user to restart services after
ipa-server-certinstall.

https://pagure.io/freeipa/issue/7016

Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Aleksei Slaikovskii 2017-10-23 11:17:32 +02:00 committed by Tibor Dudlák
parent 3e33857827
commit 59802d37d1
No known key found for this signature in database
GPG Key ID: 12B8BD343576CDF5
2 changed files with 7 additions and 1 deletions

View File

@ -28,7 +28,8 @@ PKCS#12 is a file format used to safely transport SSL certificates and public/pr
They may be generated and managed using the NSS pk12util command or the OpenSSL pkcs12 command.
The service(s) are not automatically restarted. In order to use the newly installed certificate(s) you will need to manually restart the Directory and/or Apache servers.
The service(s) are not automatically restarted. In order to use the newly installed certificate(s) you will need to manually restart the Directory, Apache and/or Krb5kdc servers.
.SH "OPTIONS"
.TP
\fB\-d\fR, \fB\-\-dirsrv\fR

View File

@ -17,6 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import print_function
import os
import os.path
@ -121,6 +122,10 @@ class ServerCertInstall(admintool.AdminTool):
if self.options.kdc:
self.install_kdc_cert()
print(
"Please restart ipa services after installing certificate "
"(ipactl restart)")
api.Backend.ldap2.disconnect()
def install_dirsrv_cert(self):