Developer Libraries

cURL

Python

Javascript

C#

Go

Java

Swift

C++

Node JS

PHP

Ruby

Third-party Integrations

make logo Make

MISP

MS Security Copilot

SSL Lookup SDK: Integrate WhoisFreaks APIs with Go

With the WhoisFreaks Go SDK, you can retrieve SSL certificate details for any domain. This includes information about the certificate's validity, issuer, and other critical details, allowing you to ensure secure communications and verify the authenticity of websites. This feature is vital for securing online transactions and maintaining web security.


SSL Lookup

This package is for performing any type of SSL lookup.

To utilize the WhoisFreaks Go SDK for SSL Lookup of domain names, follow these steps:

  • DNS Authentication Setup

    To authenticate your API requests, set your API key using the SetAPIKey method provided by the SDK. This method sets the global API key to the specified value.

    bash Copy
                                func SetAPIKey(key string)
                            

    Parameter:

    1. key: A string representing the API key to be set.

    Example Usage:

    go Copy
                                package main
    
    import (
        "github.com/WhoisFreaks/whoisfreaks/whois"
    )
    
    func main() {
        whois.SetAPIKey("your_api_key")
        // Your code here
    }
                            

    Replace "your_api_key" with your actual API key.

  • SSL Live Lookup

    GetLiveResponse retrieves live SSL information for a specific domain using the WhoisFreaks API.

    go Copy
                                func GetLiveResponse(domain string, chain bool, raw bool) (*modal.DomainSslInfo, *modal.Error)
                            

    Parameters:

    1. domain: The domain name for which live SSL information is requested (e.g., "example.com").
    2. chain: A boolean flag indicating whether to include SSL certificate chain information.
    3. raw: A boolean flag indicating whether to include raw SSL certificate information.

    Returns:

    1. *modal.DomainSslInfo: A pointer to a DomainSslInfo struct containing live SSL information.
    2. *modal.Error: A pointer to an Error struct if there is an API error, or nil if the request is successful.

    Example Usage:

    go Copy
                                package main
    
    import (
        "fmt"
        "log"
        "github.com/WhoisFreaks/whoisfreaks/ssl"
    )
    
    func main() {
        ssl.SetAPIKey("your_api_key")
        domain := "example.com"
        result, err := ssl.GetLiveResponse(domain)
        if err != nil {
            log.Fatal(err)
        }
        fmt.Println(result)
    }
                            

    Replace "example.com" with the domain you wish to query.

Click here if you want to know how to perform WHOIS lookups using the Go SDK.

Click here for instructions on performing DNS lookups with the Go SDK.

Click here to find out how to check domain availability using the Go SDK.


Visit the official WhoisFreaks Go SDK documentation for SSL certificate lookups and management.

Make Business Growth

GoLang SSL Lookup SDK

Use this Go Lang-based SDK tool to seamlessly connect to the WhoisFreaks API for SSL certificate data and secure your applications.

pkg.go.dev