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 SSL certifications generated from specific host (Create certificaitons in CI) #1310

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

Commits on Feb 16, 2023

  1. Add an option to use SSL certifications generated from specific host.

    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"
    to run SSL tests. The feature to create a set of the SSL 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/
    $ TEST_RUBY_MYSQL2_SSL_CERT_HOST=localhost bash gen_certs.sh
    ```
    
    The files are generated in the `spec/ssl` directory.
    
    How to use:
    
    ```
    $ TEST_RUBY_MYSQL2_SSL_CERT_HOST=localhost \
    bundle exec rake spec
    ```
    junaruga committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    a1ff8a5 View commit details
    Browse the repository at this point in the history