šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/cdukes/ssl-support-checker

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/cdukes/ssl-support-checker

v1.1.0
Source
Go
Version published
Created
Source

SSL Support Checker

This package contains two functions to a) check whether a URL's domain supports SSL and b) automatically upgrade a URL string to SSL if supported.

import checker "github.com/cdukes/ssl-support-checker"

u, _ := url.Parse("http://example.com")
log.Print(checker.SupportsSSL(u)) // false
log.Print(checker.MaybeUpgradeURL("http://example.com")) // http://example.com

u, _ = url.Parse("http://google.com")
log.Print(checker.SupportsSSL(u)) // true
log.Print(checker.MaybeUpgradeURL("http://google.com"))  // https://google.com

Uses DuckDuckGo Smarter Encryption (Docs)

FAQs

Package last updated on 12 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts