Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
certificate-ripper — 🔐 用于提取服务器证书的 CLI 工具 | Kitploit
工具/GitHubGitHub/hakky54/certificate-ripper
通用工具信息收集网络安全密码学
GitHubhakky54/certificate-ripper

certificate-ripper

🔐 用于提取服务器证书的 CLI 工具

查看仓库
919773623天前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Actions Status Security Rating Coverage Apache2 license GitHub stars chart

SonarCloud

Certificate Ripper 🔐

一款用于提取服务器证书的 CLI 工具

演示

alt text

优势

  • 速度快
  • 易于使用
  • 无需 openssl
  • 可在任何操作系统上运行
  • 可搭配或不搭配 Java 使用,发布版本中提供了原生可执行文件
  • 提取证书的所有子字段
  • 证书可格式化为 PEM 格式
  • 可通过单条命令批量提取多个不同的 URL
  • 提取的证书可自动存储到 p12 信任库中
  • 也可在代理后面工作
  • 支持的协议:
    • https(超文本传输安全协议)
    • wss(WebSocket 安全协议)
    • ftps(文件传输安全协议)
    • smtps(简单邮件传输安全协议)
    • imaps(互联网消息访问安全协议)
    • 数据库:
      • PostgreSQL
      • MySQL

安装

可执行文件可在 Releases 中下载。或者,你也可以使用以下方法之一安装该工具:

  • Mac OS X (ARM) 与 Linux - Homebrew 🍺
    • 运行 brew install crip
  • Mac OS X (Intel/ARM) 与 Linux - Homebrew 🍺
    • 运行 brew install hakky54/homebrew-apps/crip
  • Linux - Debian/Ubuntu (apt) 📦
    • 运行 sudo add-apt-repository ppa:hakky554/apps && sudo apt update && sudo apt-get install crip -t 'o=LP-PPA-hakky554-apps'
  • Linux 与 Windows
    • 在此处下载最新的二进制文件:Releases
  • Nintendo 3DS 🎮
    • 在此处查找最新版本和安装说明:3DS Certificate Ripper

贡献/非官方安装方法

  • Arch-Linux (AUR)
    • 安装 certificate-ripper-bin AUR 包
  • NixOS (nixpkgs)
    • 运行 nix-shell -p certificate-ripper 或将 pkgs.certificate-ripper 添加到你的 configuration.nix 文件中
  • Sourceforge
  • Windows
    • Chocolatey 🍫
      • 运行 choco install crip
    • Scoop 🍨
      • 运行 scoop install extras/crip

本地构建

构建原生可执行文件

最低要求:

  1. 带 Native Image 的 GraalVM 24
  2. Maven
  3. 终端

特定操作系统的额外要求

  • Linux:sudo apt-get update && sudo apt-get install build-essential libz-dev zlib1g-dev -y
  • Mac:xcode-select --install
  • Windows:Visual Studio 应用,并确保命令行中已启用 chcp 65001(UTF-8 编码)
mvn clean install -Pnative-image \
 && ./target/crip print --url=https://youtube.com/

os 原生可执行二进制文件将位于目标目录下,文件名为 crip

构建 java fat jar

最低要求:

  1. Java 21
  2. Maven
  3. 终端
mvn clean install -Pfat-jar \
 && java -jar target/crip.jar print --url=https://youtube.com/

生成的 fat jar 将位于目标目录下,文件名为 crip.jar

CLI 选项

Usage: crip [COMMAND]
Commands:
  print             Prints the extracted certificates to the console
  export p12        Export the extracted certificate to a PKCS12/p12 type truststore
  export jks        Export the extracted certificate to a JKS (Java KeyStore) type truststore
  export der        Export the extracted certificate to a binary form also known as DER
  export pem        Export the extracted certificate to a base64 encoded string also known as PEM
  
Usage: crip print
Prints the extracted certificates to the console
  -f, --format              To be printed certificate format. This option is not required. Default is human-readable.
  -u, --url                 Url of the target server to extract the certificates. Can be provided multiple times.

Usage: crip export pkcs12
Export the extracted certificate to a PKCS12/p12 type truststore
  -u, --url                 Url of the target server to extract the certificates. Can be provided multiple times.
  -p, --password            TrustStore password. This option is not required. Default is changeit.
  -d, --destination         Destination of the to be stored file. Default is current directory if none is provided.
      
Usage: crip export der
Export the extracted certificate to a binary form also known as DER
  -u, --url                 Url of the target server to extract the certificates. Can be provided multiple times.
  -c, --combined            Indicator to either combine all of the certificate into one file for a given url or export into individual files.
  -d, --destination         Destination of the to be stored file. Default is current directory if none is provided.

Usage: crip export pem
Export the extracted certificate to a base64 encoded string also known as PEM
  -u, --url                 Url of the target server to extract the certificates. Can be provided multiple times.
  -c, --combined            Indicator to either combine all of the certificate into one file for a given url or export into individual files.
  -d, --destination         Destination of the to be stored file. Default is current directory if none is provided.
      --include-header      Indicator to either omit or include additional information above the BEGIN statement.
      
Other additional options applicable for all commands
      --proxy-host          Proxy host
      --proxy-port          Proxy port
      --proxy-password      Password for authenticating the user for the given proxy
      --proxy-user          User for authenticating the user for the given proxy
  -t, --timeout             Amount of milliseconds till the ripping should timeout
      --resolve-ca          Indicator to automatically resolve the root ca. Possible options: true, false
      --resolve-siblings    Indicator to automatically resolve the certificates from DNS names. Possible options: true, false
      --cert-type           To be extracted certificate types. Available Formats: root, inter, leaf, all. Default: all

示例用法

单次导出

crip export pkcs12 -u=https://github.com

批量导出

crip export pkcs12 \
-u=https://youtube.com \
-u=https://github.com \
-u=https://stackoverflow.com \
-u=https://facebook.com

指定自定义信任库目标路径

crip export pkcs12 -u=https://github.com -d=/path/to/directory

以人类可读格式打印

crip print -u=https://github.com

以 PEM 格式打印

crip print -u=https://github.com -f=pem

批量打印为 PEM 格式

crip print -f=pem \
-u=https://youtube.com \
-u=https://github.com \
-u=https://stackoverflow.com \
-u=https://facebook.com

通过代理进行提取

crip export pem \
-u=https://stackoverflow.com \
--proxy-host=my-host.com \
--proxy-port=1234 \
--proxy-user=foo \
--proxy-password

组合证书

crip export pem -u=https://github.com --combined=true

定义自定义文件名

仅在组合选项下且只指定单个 URL 时有效。

crip export pem -u=https://github.com --combined=true --destination=/path/to/export/github-chain.crt

将额外证书信任到 Java Cacerts Keystore

crip export p12 -d=path/to/lib/security/cacerts -p=changeit -u=https://google.com

导出其他来源

# Operating System trusted certificates
crip export pem -u=system

# Websocket server
crip export pem -u=wss://echo.websocket.org

# FTP server
crip export pem -u=ftps://my-drive.com:21

# SMTP server
crip export pem -u=smtps://smtp-mail.outlook.com:587

# IMAP server
crip export pem -u=imaps://outlook.office365.com:993
下载工具