Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to use certifications generated from localhost. #1296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 2, 2023

  1. Add an option to use certifications generated from localhost.

    In the Fedora project, we are running the mysql2 tests on the build environment
    with a user permission, without root permission and without `sudo`.
    
    In this case, we couldn't set up the custom domain "mysql2gem.example.com"
    required to run SSL tests. This feature to create a set of the certifications
    from the localhost gives an option to run the SSL tests executed in the environment.
    
    How to generate the certificaton files:
    
    ```
    $ cd spec/ssl/
    $ bash gen_certs.sh
    ```
    
    The files are generated in the `spec/ssl/<host name>`. Added the new files
    generated from the domain localhost in the `spec/ssl/localhost`.
    
    How to use:
    
    ```
    $ TEST_RUBY_MYSQL2_SSL_CERT_HOST=localhost \
      bundle exec rake spec
    ```
    junaruga committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    99623e7 View commit details
    Browse the repository at this point in the history