Extract SHA-256 Certificate Fingerprint from hostname or certificate (.crt, .der or .pem) file

Overview

Certificate Fingerprint Extractor

This tool extract SHA-256 Certificate Fingerprint from hostname or certificate (.crt, .der or .pem) file.

In order to implement Certificate Pinning during an SSL connection, a certificate fingerprint needs to be provided.

Usage examples:

   $ peer-certificate-extractor -n, --hostname <hostname> (e.g., google.com, facebook.com)

or

   $ peer-certificate-extractor -c, --certificate <certificate> (e.g., cert.der, cert.crt, cert.pem)

Example output:

  Fingerprints from google.com certificates:
  sha256/We74o5ME3USRtL6+B2UhXnwY9FR91QPJMYDtUNk6tEc=
  sha256/zCTnfLwLKbS9S2sbp+uFz4KZOocFvXxkV06Ce9O5M2w=
  sha256/hxqRlPTu1bMS/0DITB1SSu0vd4u/8l8TjPgfaAp63Gc=

Certificate Pinning with OkHttp

Enabling okhttp certificate pinning (Example in Kotlin):

  ...
  val certificatePinner = CertificatePinner.Builder()
    .add("google.com", "sha256/We74o5ME3USRtL6+B2UhXnwY9FR91QPJMYDtUNk6tEc=")
    .add("google.com", "sha256/zCTnfLwLKbS9S2sbp+uFz4KZOocFvXxkV06Ce9O5M2w=")
    .add("google.com", "sha256/hxqRlPTu1bMS/0DITB1SSu0vd4u/8l8TjPgfaAp63Gc=")
    .build()
    
  val client = OkHttpClient.Builder()
    .certificatePinner(certificatePinner)
    .build()
  ...
You might also like...
The easy way to use biometric authentication in your Flutter app. Supports Fingerprint, FaceID and Iris.
The easy way to use biometric authentication in your Flutter app. Supports Fingerprint, FaceID and Iris.

BiometricX The easy way to use biometric authentication in your Flutter app. Supports Fingerprint, FaceID and Iris. Demo APK. Starting $ flutter pub a

Biometric Authentication Fingerprint Example
Biometric Authentication Fingerprint Example

Biometric Authentication Fingerprint Example See the blog post of this project here Project Presentation First, let's add the Biometric library to our

Fingerprint Biometric Authentication Android
Fingerprint Biometric Authentication Android

Fingerprint-BiometricAuthentication-Android Preview Authentication Succeeded Aut

A standalone library project for certificate pinning on Android.

Android Pinning AndroidPinning is a standalone Android library project that facilitates certificate pinning for SSL connections from Android apps, in

EU Digital COVID Certificate Wallet App - Android

This repository contains the source code of the EU Digital COVID Certificate Wallet App for Android.

Digital Covid Certificate SDK

Digital Green Certificate SDK Read this in other languages: English. 📄 Leggi la documentazione dettagliata Indice Contesto Installazione Uso Contribu

Impact vaccine eu certificate android verifier app

DGCVerifier Android Application This is an application that scans the EU certifi

A Certificate Authority with RESTful interface and WEB UI
A Certificate Authority with RESTful interface and WEB UI

minica A Certificate Authority with RESTful interface and WEB UI Home page View CA detail View Cert Detail With RESTful interface, you can manage cert

Unicorn File Picker is a library designed to package a powerful file selector for android.
Unicorn File Picker is a library designed to package a powerful file selector for android.

A simple, documented, and contribution-friendly File Picker for Android.

A tool translate a apk file to stantard android project include so hook api and il2cpp c++ scaffolding when apk is a unity il2cpp game. Write code on a apk file elegantly.

FakerAndroid (FakerAndroid.jar or FakerAndroid-AS) A tool translate a apk file to stantard android project include so hook api and il2cpp c++ scaffold

A lightning fast, transactional, file-based FIFO for Android and Java.

Tape by Square, Inc. Tape is a collection of queue-related classes for Android and Java. QueueFile is a lightning-fast, transactional, file-based FIFO

Pulls notifications from a remote JSON file and shows them in your app.
Pulls notifications from a remote JSON file and shows them in your app.

android-remote-notifications A Google GCM/Amazon SNS alternative using pull instead of push. Main features Independent user notifications (no Google G

Material design file manager for Android
Material design file manager for Android

Amaze File Manager Overview Open Source, light and smooth Based on Material Design guidelines Basic features like cut, copy, delete, compress, extract

Material design file manager for Android
Material design file manager for Android

Amaze File Manager Overview Open Source, light and smooth Based on Material Design guidelines Basic features like cut, copy, delete, compress, extract

FilePicker is a small and fast file selector library that is constantly evolving with the goal of rapid integration, high customization, and configurability~
FilePicker is a small and fast file selector library that is constantly evolving with the goal of rapid integration, high customization, and configurability~

Android File Picker 🛩️ 中文简体 Well, it doesn't have a name like Rocky, Cosmos or Fish. Android File Picker, like its name, is a local file selector fra

A simple file/ directory picker dialog for android
A simple file/ directory picker dialog for android

FileListerDialog FileListerDialog helps you to list and pick file/directory. Library is built for Android Getting Started Installing To use this libra

The best file downloader library for Android
The best file downloader library for Android

Overview Fetch is a simple, powerful, customizable file download manager library for Android. Features Simple and easy to use API. Continuous download

[] Android library that provides a file explorer to let users select files on external storage.
[] Android library that provides a file explorer to let users select files on external storage.

aFileChooser - Android File Chooser aFileChooser is an Android Library Project that simplifies the process of presenting a file chooser on Android 2.1

MarkdownView is an Android webview with the capablity of loading Markdown text or file and display it as HTML, it uses MarkdownJ and extends Android webview.
MarkdownView is an Android webview with the capablity of loading Markdown text or file and display it as HTML, it uses MarkdownJ and extends Android webview.

About MarkdownView (Markdown For Android) is an Android library that helps you display Markdown text or files (local/remote) as formatted HTML, and st

Owner
Reign
Top-Notch Technology
Reign
BlackDex is an Android unpack tool, it supports Android 5.0~12 and need not rely to any environment. BlackDex can run on any Android mobile phones or emulators, you can unpack APK File in several seconds.

BlackDex is an Android unpack tool, it supports Android 5.0~12 and need not rely to any environment. BlackDex can run on any Android mobile phones or emulators, you can unpack APK File in several seconds.

null 4.3k Jan 2, 2023
A program to flip every private, protected and package-private access flag to public in an Android dex file!

DexExposed A program to flip every private, protected and package-private access flag to public in an Android dex file! Building Simply run gradle mak

John Doe 2 Aug 29, 2021
Appdbg - make it possible to run android dex file in original Java Virtual Machine

Appdbg - make it possible to run android dex file in original Java Virtual Machine

null 137 Dec 20, 2022
Grundlagen-android-schulung - Android Grundlagen Schulung vom 03.01.22-08.01.22 im Rahmen der GFU

grundlagen-android-schulung Android Grundlagen Schulung vom 03.01.22-08.01.22 im

droid dojo 0 Jan 7, 2022
Codebeispiele für meinen Vortrag "Das untere Ende der Testpyramide"

unit-testing-best-bad-practices Codebeispiele für meinen Vortrag "Das untere Ende der Testpyramide" Beispiel für Mocking ist ?? Siehe BookRepository u

Lars Michaelis 3 Aug 2, 2022
This command line program can extract chat messages send on the Minecraft server HGLabor

HGLabor-Log-Extractor Das Programm durchläuft einmalig deine Minecraft-Logs und sammelt alle Nachrichten heraus, die auf HGLabor geschrieben wurden. K

null 4 Dec 12, 2021
A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML

A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML (server & client-side rendered). It places particular emphasis on ease of use and a high level of readability by providing an intuitive DSL. It aims to be a testing lib, but can also be used to scrape websites in a convenient fashion.

null 603 Jan 1, 2023
Uproot-JS - Extract JavaScript files from burp suite project with ease

Extract JavaScript files from burp suite project with ease. Disclaimer I am not

Dexter0us 50 Aug 8, 2022
A Material design Android pincode library. Supports Fingerprint.

LolliPin A Lollipop material design styled android pincode library (API 14+) To include in your project, add this to your build.gradle file: //Loll

Omada Health 1.6k Nov 25, 2022