Lower security level to '1' and allow all ciphers for TLS 1.0/1
(*ctxs)
| 152 | |
| 153 | if is_ubuntu(): |
| 154 | def seclevel_workaround(*ctxs): |
| 155 | """Lower security level to '1' and allow all ciphers for TLS 1.0/1""" |
| 156 | for ctx in ctxs: |
| 157 | if ( |
| 158 | hasattr(ctx, "minimum_version") and |
| 159 | ctx.minimum_version <= ssl.TLSVersion.TLSv1_1 and |
| 160 | ctx.security_level > 1 |
| 161 | ): |
| 162 | ctx.set_ciphers("@SECLEVEL=1:ALL") |
| 163 | else: |
| 164 | def seclevel_workaround(*ctxs): |
| 165 | pass |
no test coverage detected