emekaorji / openssl-keygen

Generate a standard openssl secure key on the fly in VSCode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenSSL Keygen VSCode Extension

OpenSSL Keygen Logo

This VSCode extension allow you to generate a standard openssl secure key on the fly. Can be useful when in need of a cryptographic key or a unique secret for your application.

Features πŸ“™

  • Generate a unique/secure secret key for your application
  • Generate unique secret key from inside an active editor menu options
OpenSSL Keygen Demo

Installation πŸ“

Via in-app extension view

  1. Launch Visual Studio Code.
  2. Go to the Extensions view by clicking on the square icon on the left sidebar or by using the shortcut Cmd+Shift+X or Ctrl+Shift+X on windows.
  3. Search for "OpenSSL Keygen" in the Extensions marketplace.
  4. Click the "Install" button next to the "OpenSSL Keygen" extension.
  5. Once installed, you can find the extension in the command palette.

Via online VSCode marketplace

  1. Head over to https://marketplace.visualstudio.com/items?itemName=coderabbi.openssl-keygen and click the "Install" button.
  2. Follow step 4 and 5 above

Usage πŸ› οΈ

  1. Open a text editor.
  2. Toggle the command palette using the shortcut Cmd+Shift+P or Ctrl+Shift+P on windows and search for Generate an OpenSSL secret key.
  3. After selecting the command, a unique key would be generated and pasted in the active editor.
    Via Command Palette
  4. If there is no active editor, a notificaton box is created with the option to copy the secret key.
    Copy Key from Notification

OR

  1. Open a text editor.
  2. Right Click and select Generate OpenSSL secret in the dropdown menu.
    Via Editor Context Menu

Extension Deactivation πŸ˜”

The extension is deactivated automatically when you close Visual Studio Code or manually disable the extension in the Extensions view.

Troubleshooting πŸ›

  • Error "OpenSSL Command Error": Usually a windows OS error - This occurs when there's a problem in running the key generation command. Check that openssl is installed correctly on windows.
  • Error: "STDERR error": Same as above, but more general. Pls see full error for more details about this error.

Feedback and Contributions πŸ‘‚

In case of any errors or issues, appropriate error messages will be displayed, indicating the problem encountered. Refer to the Troubleshooting section of this docs and try to fix the issue based on the error message. If the error persists, please create an issue here.

Feel free to also create a PR if you are willing to address an issue or add a new feature and I'll take a look as soon as possible.

For any other feedback, please reach out to me on Twitter (@code_rabbi).

Enjoy! πŸ’™

About

Generate a standard openssl secure key on the fly in VSCode

License:MIT License


Languages

Language:TypeScript 90.4%Language:JavaScript 9.6%