Skip to content

Instantly share code, notes, and snippets.

@surajnarwade
Last active December 11, 2020 23:39
Show Gist options
  • Select an option

  • Save surajnarwade/eb6efcbe792ff7b5dc75f9d4c61b809d to your computer and use it in GitHub Desktop.

Select an option

Save surajnarwade/eb6efcbe792ff7b5dc75f9d4c61b809d to your computer and use it in GitHub Desktop.

Revisions

  1. surajnarwade revised this gist Dec 11, 2020. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions openssl_commands.md
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,10 @@ openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text
    openssl x509 -in cert.pem -text -noout
    ```

    * more suitable

    ```
    openssl x509 -in ca.crt -issuer -subject -noout -dates
    ```

    more: https://www.sslshopper.com/article-most-common-openssl-commands.html
  2. surajnarwade revised this gist Jul 13, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion openssl_commands.md
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,6 @@ openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text

    ```
    openssl x509 -in cert.pem -text -noout
    ```
    ```

    more: https://www.sslshopper.com/article-most-common-openssl-commands.html
  3. surajnarwade created this gist Jul 9, 2020.
    12 changes: 12 additions & 0 deletions openssl_commands.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@

    * to check validity

    ```
    openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text | grep -A3 "Validity";
    ```

    * check details

    ```
    openssl x509 -in cert.pem -text -noout
    ```