Skip to content

Instantly share code, notes, and snippets.

@kkpan11
Forked from zulhfreelancer/change-openssl-version.md
Created November 17, 2023 09:09
Show Gist options
  • Save kkpan11/b821f5647c1ad119188f974ae941f1df to your computer and use it in GitHub Desktop.
Save kkpan11/b821f5647c1ad119188f974ae941f1df to your computer and use it in GitHub Desktop.

Revisions

  1. @zulhfreelancer zulhfreelancer revised this gist Apr 24, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions change-openssl-version.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    ## How to switch OpenSSL version on Mac using Homebrew?

    Scenario: you have both OpenSSL 1.0 and 1.1 installed (using Brew) in your OSX system and you want to switch the current active version without removing other versions that already installed. Here is how to do it.

    ### Step 1 - List all OpenSSL versions

    ```
  2. @zulhfreelancer zulhfreelancer revised this gist Apr 24, 2020. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion change-openssl-version.md
    Original file line number Diff line number Diff line change
    @@ -15,12 +15,25 @@ drwxr-xr-x 13 zulhilmi staff 442 Apr 21 04:01 1.1.1f
    drwxr-xr-x 13 zulhilmi staff 442 Apr 24 15:41 1.1.1g
    ```

    ### Step 2 - Switch
    ### Step 2a - Switching to version 1.0

    ```
    $ brew switch openssl 1.0.2t
    ```

    ### Step 2b - Switching to version 1.1

    ```
    $ brew switch [email protected] 1.1.1f
    ```

    ### Step 3 - Check new version

    ```
    $ openssl version
    OpenSSL 1.1.1f 31 Mar 2020
    ```

    Reference:

    - https://stackoverflow.com/a/59184347/1577357
  3. @zulhfreelancer zulhfreelancer revised this gist Apr 24, 2020. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions change-openssl-version.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,5 @@
    ## How to switch OpenSSL version on Mac using Homebrew?

    ---

    ### Step 1 - List all OpenSSL versions

    ```
  4. @zulhfreelancer zulhfreelancer revised this gist Apr 24, 2020. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions change-openssl-version.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    ## Step 1 - List all OpenSSL versions
    ## How to switch OpenSSL version on Mac using Homebrew?

    ---

    ### Step 1 - List all OpenSSL versions

    ```
    $ ls -al /usr/local/Cellar/openssl*
    @@ -13,7 +17,7 @@ drwxr-xr-x 13 zulhilmi staff 442 Apr 21 04:01 1.1.1f
    drwxr-xr-x 13 zulhilmi staff 442 Apr 24 15:41 1.1.1g
    ```

    ## Step 2 - Switch
    ### Step 2 - Switch

    ```
    $ brew switch openssl 1.0.2t
  5. @zulhfreelancer zulhfreelancer created this gist Apr 24, 2020.
    24 changes: 24 additions & 0 deletions change-openssl-version.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    ## Step 1 - List all OpenSSL versions

    ```
    $ ls -al /usr/local/Cellar/openssl*
    /usr/local/Cellar/openssl:
    total 0
    drwxr-xr-x 13 zulhilmi staff 442 Apr 21 04:31 1.0.2t
    /usr/local/Cellar/[email protected]:
    total 0
    drwxr-xr-x 13 zulhilmi staff 442 Apr 21 04:01 1.1.1f
    drwxr-xr-x 13 zulhilmi staff 442 Apr 24 15:41 1.1.1g
    ```

    ## Step 2 - Switch

    ```
    $ brew switch openssl 1.0.2t
    ```

    Reference:

    - https://stackoverflow.com/a/59184347/1577357