forked from ansiblebook/ansible_role_ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* hardening * Amended for Yum mirrors * meta-data
- Loading branch information
1 parent
8c7cb38
commit 1d206cb
Showing
4 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,48 @@ | ||
# https://access.redhat.com/articles/3642912 | ||
# This is a stricter policy than FIPS:OSPP | ||
|
||
mac = HMAC-SHA2-256 UMAC-128 HMAC-SHA2-512 | ||
mac = AEAD HMAC-SHA2-384 | ||
|
||
group = X25519 SECP256R1 SECP384R1 SECP521R1 \ | ||
group = X25519 X448 SECP256R1 SECP384R1 SECP521R1 \ | ||
FFDHE-2048 FFDHE-3072 FFDHE-4096 FFDHE-6144 FFDHE-8192 | ||
|
||
hash = SHA2-256 SHA2-384 SHA2-512 SHA2-224 SHA3-384 SHA3-512 | ||
hash = SHA2-256 SHA2-384 SHA2-512 SHA3-256 SHA3-384 SHA3-512 SHA2-224 | ||
|
||
# SHA1 signatures needed for DNSSec | ||
sign = EDDSA-ED25519 \ | ||
RSA-PSS-SHA2-256 RSA-PSS-SHA2-384 RSA-PSS-SHA2-512 \ | ||
RSA-SHA3-256 RSA-SHA2-256 \ | ||
RSA-SHA3-384 RSA-SHA2-384 \ | ||
RSA-SHA3-512 RSA-SHA2-512 \ | ||
RSA-PSS-SHA2-224 RSA-SHA2-224 | ||
RSA-PSS-SHA2-224 RSA-SHA2-224 \ | ||
ECDSA-SHA1 RSA-PSS-SHA1 RSA-SHA1 | ||
|
||
# tls_cipher is deprecated | ||
tls_cipher = AES-256-GCM AES-256-CCM \ | ||
cipher@TLS = AES-256-GCM AES-256-CCM \ | ||
AES-128-GCM AES-128-CCM | ||
|
||
cipher = AES-256-GCM AES-256-CCM CHACHA20-POLY1305 AES-256-CTR \ | ||
AES-128-GCM AES-128-CCM AES-128-CTR | ||
cipher = AES-256-GCM AES-256-CCM CHACHA20-POLY1305 \ | ||
CAMELLIA-256-GCM AES-256-CTR AES-128-GCM AES-128-CCM AES-128-CTR | ||
|
||
# Yum mirrors need ECDHE (using weak elliptic curves like ecdh-sha2-nistp521) | ||
key_exchange = ECDHE DHE-PSK ECDHE-PSK DHE DHE-RSA PSK DHE-PSK | ||
|
||
key_exchange = DHE DHE-RSA PSK DHE-PSK | ||
# protocol is deprecated | ||
protocol = TLS1.3 TLS1.2 DTLS1.2 | ||
protocol@TLS = TLS1.3 TLS1.2 DTLS1.2 | ||
# ike_protocol is deprecated | ||
ike_protocol = IKEv2 | ||
protocol@IKE = IKEv2 | ||
|
||
min_tls_version = TLS1.2 | ||
min_dtls_version = DTLS1.2 | ||
|
||
# Parameter sizes | ||
min_dh_size = {{ min_dh_size }} | ||
min_dsa_size = 3072 | ||
min_dh_size = 2048 | ||
min_dsa_size = 2048 | ||
min_rsa_size = 2048 | ||
|
||
# GnuTLS only for now | ||
sha1_in_certs = 0 | ||
|
||
arbitrary_dh_groups = 1 | ||
ssh_certs = 1 | ||
ssh_etm = 1 |