• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
stevekrouse

stevekrouse

ssl-checker

Public
Like
ssl-checker
Home
Code
4
README.md
H
index.ts
ssl-checker.ts
templates.tsx
Environment variables
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
10/22/2025
Viewing readonly version of main branch: v21
View latest version
README.md

SSL Certificate Checker

A web application and API for checking SSL certificate information using Deno's built-in TLS connection capabilities.

Features

  • Web interface for checking SSL certificates
  • REST API endpoints for programmatic access
  • Clean, responsive UI built with Hono JSX
  • Modular architecture with separated concerns

Project Structure

├── index.ts          # Main Hono application with routes
├── ssl-checker.ts    # SSL checking logic and types
├── templates.tsx     # Hono JSX templates and components
└── README.md         # This file

API Endpoints

Web Interface

  • GET / - Main web interface

API Endpoints

  • GET /check?url=<url> - Check SSL certificate (JSON response)
  • POST /check - Check SSL certificate
    • Form data: url=<url>
    • JSON: {"url": "<url>"}

Usage Examples

Web Interface

Visit the root URL to use the interactive form.

API Usage

GET Request:

curl "https://your-val.web.val.run/check?url=https://google.com"

POST Request (JSON):

curl -X POST "https://your-val.web.val.run/check" \ -H "Content-Type: application/json" \ -d '{"url": "https://google.com"}'

POST Request (Form):

curl -X POST "https://your-val.web.val.run/check" \ -d "url=https://google.com"

Response Format

{ "url": "https://google.com/", "hostname": "google.com", "port": 443, "alpnProtocol": null }

Architecture

ssl-checker.ts

Contains the core SSL checking functionality:

  • checkSSL(url: string) - Main function to check SSL certificates
  • SSLInfo interface - TypeScript type definitions

templates.tsx

Hono JSX components for the web interface:

  • Layout - Base HTML layout component
  • HomePage - Main page with form
  • ResultsPage - SSL check results display

index.ts

Main Hono application with:

  • Route handlers for web and API endpoints
  • Error handling
  • Content-type detection for JSON vs form responses

Error Handling

The application includes comprehensive error handling:

  • Invalid URLs are caught and reported
  • Network errors are handled gracefully
  • Different error responses for web vs API requests
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.