This repository was archived by the owner on Jan 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathform.php
More file actions
56 lines (55 loc) · 3.11 KB
/
form.php
File metadata and controls
56 lines (55 loc) · 3.11 KB
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
<div id='page-content-wrapper'>
<div class='container-fluid'>
<div class='row'>
<div class="col-md-10 col-md-offset-1">
<div class="page-header" >
<h1>SSL Decoder</h1>
</div>
<div id='sslform'>
<form class="form-horizontal">
<p>Fill in either host + port or paste a CSR/Certficiate. Port defaults to 443. <br></p>
<fieldset>
<div class="form-group">
<label class="col-md-1 control-label" for="host">Host </label>
<div class="col-md-5">
<input id="host" name="host" type="url" placeholder="raymii.org (or Host:IP to test a specific hostname on an IP)" autofocus="autofocus" class="form-control input-md" >
</div>
<label class="col-md-1 control-label" for="port">Port</label>
<div class="col-md-2">
<input id="port" name="port" type="number" placeholder="443" class="form-control input-md">
</div>
</div>
<div class="form-group">
<div class="col-md-4 col-md-offset-1">
<div class="checkbox">
<label for="fastcheck">
<input type="checkbox" name="fastcheck" id="fastcheck" value="1">
Fast check (no connection details, no TLSA check, no certificate transparency submission)
</label>
</div>
</div>
</div>
<hr>
<div class="form-group">
<label class="col-md-1 control-label" for="csr">CSR / Certificate</label>
<div class="col-md-5">
<textarea class="form-control" rows=6 id="csr" name="csr" placeholder="Paste a CSR or certificate (in PEM format) here to get all the information in the cert/csr, including the full chain of trust."></textarea>
</div>
</div>
<div class="form-group">
<div class="col-md-4">
<label class="col-md-2 col-md-offset-1 control-label" for="s"></label>
<button id="s" name="s" class="btn btn-primary" onsubmit="showElementbyID(true, 'preloader'); showElementbyID(false, 'sslform'); makeRequest('/ssl/?port=' + this.form.port.value + '&csr=' + this.form.csr.value + '&s=&host=' + this.form.host.value,, 'showContent');return false" onclick="showElementbyID(true, 'preloader'); showElementbyID(false, 'sslform'); makeRequest('/ssl/?port=' + this.form.port.value + '&csr=' + this.form.csr.value + '&ciphersuites=' + this.form.ciphersuites.value + '&s=&host=' + this.form.host.value, 'showContent');return false">Submit</button>
</div>
</div>
</fieldset>
</form>
</div>
<div id="preloader">
<p>
<img src="<?php echo(htmlspecialchars($current_folder)); ?>img/ajax-loader.gif" />
<br> <br>
The SSL Decoder is processing your request. Please wait a few moments.<br>
</p>
</div>
<div id="resultDiv"></div>