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.
Log4Shell Vulnerability: Information and guidance for you. Get resources.

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 SSL Certificate Lookup
SHA256 checksum (ssl-certificate-lookup_112.tgz) 6a0ae4d5225945657f6131b1a43ac59946b8bcbca59999bd11964f96773149e6 SHA256 checksum (ssl-certificate-lookup_111.tgz) 15ca371207ff1a21c7e0a0aac2b8c73fca9218e88f9ac91a3a43cd488c037f3e
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate


SSL Certificate Lookup

Splunk Cloud
Provides sslcert_lookup, an external lookup that when given an IP or domain (works with SNI) and optionally port from an existing search, can give enrich the search by finding values from an SSL certificate like CN , SAN (Subject Alternative Names), and expiration. This can be handy for several use cases like looking for certificate expiration or discovering what site may be at an IP address.


This supporting add-on provides an external lookup called sslcert_lookup to collect the attributes of an SSL cert at a given address and port. It is built on the Splunk SDK.

Possible use-cases:
- Enrich ip addresses in a search with a certificate's common name (ssl_subject_common_name) or the certificate's subject alternative name (ssl_subject_alt_name) to gain intelligence of what might be the endpoint of the ip at that current time.
- Using makeresults or inputlookup commands, monitor a set of IPs or hostnames for expiring certs and alert
- Using the collect command to store a history of certificate changes

Version: 1.1.2

Lookup reference:



Given the input of a domain or ip address and optionally a connecting port (defaults to https 443 port if not specified), the sslcert_lookup returns various attributes of an SSL certificate.


Note this is not designed as an input (though that does not stop you from using the collect command) and is meant to only be installed on the search head (like any other app). No further setup required after install only particular SPL syntax required.


search * | lookup sslcert_lookup dest AS <search\_field\_with\_domain\_or\_ip> [dest_port AS <search\_field\_with\_port>] [OUTPUT <specfic\_field\_list>]

Required arguments

dest field from search
Syntax: * | lookup sslcert_lookup dest AS <search\_field\_with\_domain\_or\_ip>
Description: Specify a field with a domain or ip address value.

Optional arguments

dest_port field from search
Syntax: * | lookup sslcert_lookup dest AS <search\_field\_with\_domain\_or\_ip> dest_port AS <search\_field\_with\_port>
Description: Specify a field with a port to connect to.
Default: 443

sslcert macro


Simple method for running the sslcert_lookup.


search * | `sslcert(<search\_field\_with\_domain\_or\_ip> [, <search\_field\_with\_port>])`

Required arguments

dest field from search
Syntax: * | `sslcert(<search\_field\_with\_domain\_or\_ip>)`
Description: Specify a field with a domain or ip address value.

Optional arguments

dest_port field from search
Syntax: * | `sslcert(<search\_field\_with\_domain\_or\_ip>, <search\_field\_with\_port>)`
Description: Specify a field with a port to connect to.
Default: 443

Possible Fields Returned

dest,dest_port,ssl_end_time, ssl_engine, ssl_hash, ssl_is_valid, ssl_issuer, ssl_issuer_common_name, ssl_issuer_email, ssl_issuer_locality, ssl_issuer_organization, ssl_issuer_state, ssl_issuer_street, ssl_issuer_unit, ssl_name, ssl_policies, ssl_publickey, ssl_publickey_algorithm, ssl_self_issued, ssl_self_signed, ssl_serial, ssl_session_id, ssl_signature_algorithm, ssl_start_time, ssl_subject, ssl_subject_alt_name, ssl_subject_common_name, ssl_subject_email, ssl_subject_locality, ssl_subject_organization, ssl_subject_state, ssl_subject_street, ssl_subject_unit, ssl_validity_window, ssl_version


1: Connect to domain

| makeresults | eval dest="splunk.com" | lookup sslcert_lookup dest

2: Connect to domain using macro

| makeresults | eval dest="splunk.com" | `sslcert(dest)`

3: Connect to ip

| makeresults | eval dest="" | lookup sslcert_lookup dest

4: Connect to host and port

| makeresults | eval dest="mysplunkserver", dest_port=8000 | lookup sslcert_lookup dest dest_port

5: Connect to host and port using macro

| makeresults | eval dest="mysplunkserver", dest_port=8000 | `sslcert(dest, dest_port)`

6: Connect to ip and get only CN

| makeresults | eval dest="" | lookup sslcert_lookup dest OUTPUT ssl_subject_common_name

7: Connect to ip and get only CN and SAN

| makeresults | eval dest="" | lookup sslcert_lookup dest OUTPUT ssl_subject_common_name ssl_subject_alt_name | eval ssl_subject_alt_name = split(ssl_subject_alt_name,"|")

Release Notes

Version 1.1.2
Jan. 31, 2022

Updated splunklib from 1.6.14 to 1.6.18. Updated asn1crypto from 1.3.0 to 1.4.0.

Version 1.1.1
Dec. 15, 2020

Fixed app for Windows deployments. Updated to latest splunklib.

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 Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.