2014-05-26 10:23:04 -05:00
|
|
|
# Authors: Simo Sorce <ssorce@redhat.com>
|
|
|
|
# Alexander Bokovoy <abokovoy@redhat.com>
|
2014-05-27 06:11:00 -05:00
|
|
|
# Martin Kosek <mkosek@redhat.com>
|
2014-05-26 10:23:04 -05:00
|
|
|
# Tomas Babej <tbabej@redhat.com>
|
2014-05-26 09:38:25 -05:00
|
|
|
#
|
2014-05-26 10:23:04 -05:00
|
|
|
# Copyright (C) 2007-2014 Red Hat
|
2014-05-26 09:38:25 -05:00
|
|
|
# see file 'COPYING' for use and warranty information
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
'''
|
|
|
|
This module contains default Fedora-specific implementations of system tasks.
|
|
|
|
'''
|
2014-05-26 10:23:04 -05:00
|
|
|
|
2018-04-05 02:21:16 -05:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2019-11-18 03:40:44 -06:00
|
|
|
from ipapython import directivesetter
|
2014-10-03 04:14:56 -05:00
|
|
|
from ipaplatform.redhat.tasks import RedHatTaskNamespace
|
2019-11-18 03:40:44 -06:00
|
|
|
from ipaplatform.paths import paths
|
2014-05-26 10:23:04 -05:00
|
|
|
|
2014-05-27 06:11:00 -05:00
|
|
|
|
2014-10-03 04:14:56 -05:00
|
|
|
class FedoraTaskNamespace(RedHatTaskNamespace):
|
2019-11-18 03:40:44 -06:00
|
|
|
|
|
|
|
def configure_httpd_protocol(self):
|
|
|
|
# On Fedora 31 and earlier DEFAULT crypto-policy has TLS 1.0 and 1.1
|
|
|
|
# enabled.
|
|
|
|
directivesetter.set_directive(
|
|
|
|
paths.HTTPD_SSL_CONF,
|
|
|
|
'SSLProtocol',
|
|
|
|
"all -SSLv3 -TLSv1 -TLSv1.1",
|
|
|
|
False
|
|
|
|
)
|
2014-08-14 10:14:07 -05:00
|
|
|
|
|
|
|
|
2014-06-03 09:17:16 -05:00
|
|
|
tasks = FedoraTaskNamespace()
|