-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
58 lines (41 loc) · 1.87 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Program: tlsa_rdata: Generate DNS TLSA record rdata
Version: 0.3.0
Author: Shumon Huque <shuque@gmail.com>
tlsa_rdata: A program to generate DNS TLSA resource record rdata
from a file containing an X.509 certificate and given command
line parameters (usage, selector, matching-type).
Pre-requisites:
Python 3.x
M2Crypto module: a python interface to OpenSSL
Installation:
* System wide (typically /usr/bin or /usr/local/bin), as root:
python setup.py install
* In your home directory ($HOME/bin):
python setup.py install --home=$HOME
* Or just copy the "tlsa_rdata" file to wherever you want to put it.
Example runs:
// Generate TLSA rdata from "server.crt" with parameters 3 0 1:
$ tlsa_rdata server.crt 3 0 1
3 0 1 7ef4bd014e9a4f302fc1ee74fb2d29718c5b0f4cb23b25b267a1d92f0410890b
// If this certificate is to be used for the HTTPS server at
// www.example.com, we just need to install the following DNS
// record (into a signed DNS zone):
_443._tcp.www.example.com. IN TLSA 3 0 1 7ef4bd014e9a4f302fc1ee74fb2d29718c5b0f4cb23b25b267a1d92f0410890b
# Copyright (C) 2013, Shumon Huque
#
# tls_rdata is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with pydig; see the file COPYING. If not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
# Author: Shumon Huque <shuque -@- gmail.com>