项目作者: rgl

项目描述 :
a tool for dumping a given SQL Server certificate chain into local files
高级语言: Go
项目地址: git://github.com/rgl/dump-sql-server-certificate-chain.git
创建时间: 2017-05-18T19:29:29Z
项目社区:https://github.com/rgl/dump-sql-server-certificate-chain

开源协议:

下载


About

This is a tool for dumping a given SQL Server certificate chain into local files.

The encrypted SQL Server Tabular Data Stream (TDS) protocol works above, with the exception of the first pre-login message, a standard TLS layer. But because of that initial message we cannot use regular tools (e.g. openssl s_client) to troubleshoot certificate issues, hence this tool exists.

This tool uses a modified version of the denisenkom/go-mssqldb driver.

Build

Setup the Go workspace:

  1. mkdir -p dump-sql-server-certificate-chain/src/github.com/rgl/dump-sql-server-certificate-chain
  2. cd dump-sql-server-certificate-chain
  3. git clone --recursive https://github.com/rgl/dump-sql-server-certificate-chain src/github.com/rgl/dump-sql-server-certificate-chain
  4. export GOPATH=$PWD
  5. export PATH=$PWD/bin:$PATH
  6. hash -r # reset bash path

Build:

  1. cd src/github.com/rgl/dump-sql-server-certificate-chain
  2. go get
  3. go build

Execute:

  1. ./dump-sql-server-certificate-chain -server sql.example.com

List the dumped chain certificates:

  1. ls -l *.der