Skip to content

Easily manage SSL/TLS cipher suites for Cloudflare zones with this Python script. List zones, view/update ciphers using predefined (Modern, Compatible, Legacy) or custom lists. Features logging for tracking changes.

License

Notifications You must be signed in to change notification settings

GeekCQ/cf-set-ciphers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Cipher Management Tool

Easily manage SSL/TLS cipher suites for Cloudflare zones with this Python script. List zones, view/update ciphers using predefined (Modern, Compatible, Legacy) or custom lists. Features logging for tracking changes.

Requires:

A subscription to CloudFlare Advanced Certificate Manager is required to set custom cipher suites

Installation

  1. Clone the repository or download the cf-set-ciphers.py script.

  2. Set up a Python virtual environment and activate it:

    bash:
    python3 -m venv venv
    source venv/bin/activate

  3. Install the required packages:

    pip install requests

Usage

  1. chmod 0700 cf-set-ciphers.py
  2. Run the script: ./cf-set-ciphers.py [-lz -lc]
  1. Follow the prompts to enter your Cloudflare API token and desired options.

Script options

  • List zoneID's and their names: python cf-set-ciphers.py -lz
  • List the current ciphers for the specified zone:

    python cf-set-ciphers.py -lc

  • Update the cipher list for a zone:

    python cf-set-ciphers.py

Log file

The script logs all actions and errors to the cf-set-ciphers.log file in the same directory as the script. This allows you to track changes and troubleshoot issues if needed.

About

Easily manage SSL/TLS cipher suites for Cloudflare zones with this Python script. List zones, view/update ciphers using predefined (Modern, Compatible, Legacy) or custom lists. Features logging for tracking changes.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages