icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading CSR Generator
SHA256 checksum (csr-generator_002.tgz) 8b2cfe1267f36278c0a529391d2c21f2fcd80aefc0edfc0b456352894989ee73 SHA256 checksum (csr-generator_001.tgz) ec4644d00d1ba028a17597daf826959575ca4664698fca78fa49321140fcfd75
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

CSR Generator

Splunk Cloud
Overview
Details
Generate a Certificate Signing Request (CSR) and a private key.

CSR Generator

Release history

Date Version Notes
2024-10-04 0.0.1 Initial release
2024-10-12 0.0.2 Added subjectAltName support, improved input handling, and bug fixes

Overview

This app generates a Certificate Signing Request (CSR) and a private key directly within Splunk using OpenSSL.


Syntax

| gencsr common_name=<string> country=<string> state=<string> locality=<string> organization=<string> organizationalunit=<string> password=<string> subjectaltname=<string>


Example

| gencsr common_name="example.com" country="US" state="CA" locality="San Francisco" organization="Example Inc." organizationalunit="IT" password="securepassword" subjectaltname="www.example.com,mail.example.com"


Features

  • Generates CSRs using OpenSSL standards.
  • Customizable fields: Common Name (CN), Country (C), State (ST), Locality (L), Organization (O), Organizational Unit (OU), and subjectAltName.
  • Handles CSRs and private keys securely in-memory; no files are written to disk.
  • Option to password-protect the generated private key.
  • Outputs the CSR and private key directly in search results for easy access.
  • Seamless integration with Splunk’s SPL via a custom GeneratingCommand.
  • Default values provided for optional parameters, but users can override them.

New in Version 0.0.2

  • Added support for subjectAltName in CSRs.
  • Improved handling of optional input fields with defaults.
  • Enhanced input validation to prevent empty fields.
  • Minor bug fixes and performance improvements.

Known limitations

  • OpenSSL must be installed and properly configured in the Splunk environment.
  • Limited input validation — invalid fields, like incorrect country codes, may cause CSR generation to fail.
  • Dependence on external OpenSSL tools, so the app won't work if OpenSSL is missing or misconfigured.
  • Commands are executed synchronously, which could slow performance if multiple CSRs are generated in parallel.

Credits

  • MS
  • MC

Source

Feel free to contribute via https://github.com/RictheRoot/CSR-Generator

Release Notes

Version 0.0.2
Oct. 11, 2024

New Features:

  • SAN Support: Specify multiple Subject Alternative Names for greater flexibility.
  • Dynamic Fields: Add or remove SAN fields in the CSR form.
  • Improved Validation: Enhanced checks for common name, country, state, and organization fields.

Improvements:

  • Default Values: Automatically apply defaults (e.g., "US" for country) for empty fields.
  • UI Enhancements: Better layout for CSR and key output display.
  • Optimized OpenSSL Process: Simplified CSR creation when no SAN is provided.

Bug Fixes:

  • CSR Output: Resolved issues with missing common name in the CSR.
  • Field Truncation: Fixed incorrect truncation of "N/A" fields.
  • Display Issues: Corrected CSR and key output visibility in the dashboard.
Version 0.0.1
Oct. 5, 2024

Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk LLC in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.