Socket
Socket
Sign inDemoInstall

django-mysql-ssl

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-mysql-ssl

Backport dbshell support for ssl mysql connections in Django < 1.8


Maintainers
1

Django MySQL SSL

Description: Backport support for manage.py dbshell when mysql SSL is enabled

Dependencies

This application is confirmed to work with Django 1.5. It should also work with Django 1.6-1.7. This plugin is not necessary for Django 1.8, as the capability is built into the core.

Installation

  1. Install the application and its dependencies
pip install django-mysql-ssl

Usage

  1. Make sure you have configured your mysql database in the django settings with the appropriate ssl ca. You may also need 'cert' and 'key', but for most purposes 'ca' should work fine. This functionality is built into django and has nothing to do with this plugin.
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        ...
        'OPTIONS':  {'ssl': {'ca': '<PATH TO CA CERT>'}}
    }
}
  1. Connect to the db shell using the dbshell_ssl command:
./manage.py dbshell_ssl

Known issues

None

Getting help

If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker.

Getting involved

Please feel free to fork this repo and submit Pull Requests with any enhancements.


Open source licensing info

  1. TERMS
  2. LICENSE
  3. CFPB Source Code Policy

Credits and references

  1. Django ticket explaining the broken dbshell command: https://code.djangoproject.com/ticket/22646
  2. Django PR implementing the functionality in Django 1.8: https://github.com/django/django/commit/01801edd3760f97a4ebc4d43ca5bbdbbdfebbb0a

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc