Skip to content

Commit

Permalink
Improved the site layout on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
ebourg committed Jul 12, 2022
1 parent 3a91a53 commit 71988ef
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 59 deletions.
125 changes: 66 additions & 59 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="description" content="Jsign : Pure Java implementation of Microsoft Authenticode for signing Windows executable files, Microsoft Installers (MSI), Cabinet files (CAB) and scripts (PowerShell, VBScript, JScript, WSF)" />
<meta name="google-site-verification" content="p912kgAnTBOzVbswrU43k3FXUbPnxLHdeW6xsVcq1uU" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<script src="scripts/prettify/run_prettify.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
Expand All @@ -21,7 +22,7 @@
<a id="forkme_banner" href="https://github.com/ebourg/jsign">View on GitHub</a>

<h1 id="project_title">Jsign</h1>
<h2 id="project_tagline">Java implementation of Microsoft Authenticode<br>for signing Windows executable files, installers and scripts</h2>
<h2 id="project_tagline">Java implementation of Microsoft Authenticode <br class="desktop-only">for signing Windows executable files, installers and scripts</h2>

<section id="downloads">
<a class="zip_download_link" href="#files">Download Jsign</a>
Expand Down Expand Up @@ -116,46 +117,51 @@ <h3 id="ant">Ant Task</h3>

<br><br>

<table border="1" style="border-collapse: collapse; width: 100%">
<h4 class="mobile-only">Attributes</h4>

<table style="border-collapse: collapse; width: 100%">
<thead>
<tr>
<th valign="top">Attribute</th>
<th valign="top">Description</th>
<th align="center" valign="top" width="25%">Required</th>
<th>Attribute</th>
<th>Description</th>
<th align="center" width="25%">Required</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top">file</td>
<td valign="top">
<td class="attribute">file</td>
<td class="description">
The file to be signed. The supported files are Windows executables (EXE), DLLs, Microsoft Installers (MSI),
Cabinet files (CAB) and scripts (PowerShell, VBScript, JScript, WSF)</td>
<td valign="top" align="center">Yes, unless a fileset is specified.</td>
<td class="required">Yes, unless a fileset is specified.</td>
</tr>
<tr>
<td valign="top">name</td>
<td valign="top">The name of the application</td>
<td valign="top" align="center">No</td>
<td class="attribute">name</td>
<td class="description">The name of the application</td>
<td class="required">No</td>
</tr>
<tr>
<td valign="top">url</td>
<td valign="top">The URL of the application</td>
<td valign="top" align="center">No</td>
<td class="attribute">url</td>
<td class="description">The URL of the application</td>
<td class="required">No</td>
</tr>
<tr>
<td valign="top">keystore</td>
<td valign="top">The keystore file, or the <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/p11guide.html#Config">SunPKCS11 configuration file</a></td>
<td valign="top" align="center">Yes, unless <code>certfile</code> and <code>keyfile</code> are specified.</td>
<td class="attribute">keystore</td>
<td class="description">The keystore file, or the <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/p11guide.html#Config">SunPKCS11 configuration file</a></td>
<td class="required">Yes, unless <code>certfile</code> and <code>keyfile</code> are specified.</td>
</tr>
<tr>
<td valign="top">storepass</td>
<td valign="top">
<td class="attribute">storepass</td>
<td class="description">
The password to open the keystore. The password can be loaded from a file by using the <code>file:</code> prefix
followed by the path of the file, or from an enviroment variable by using the <code>env:</code> prefix followed
by the name of the variable.
</td>
<td valign="top" align="center">No</td>
<td class="required">No</td>
</tr>
<tr>
<td valign="top">storetype</td>
<td valign="top">
<td class="attribute">storetype</td>
<td class="description">
The type of the keystore:
<ul>
<li><code>JKS</code>: Java keystore (<code>.jks</code> files)</li>
Expand All @@ -169,77 +175,77 @@ <h3 id="ant">Ant Task</h3>
<li><code>GOOGLECLOUD</code>: Google Cloud KMS</li>
</ul>
</td>
<td valign="top" align="center">No, automatically detected for file based keystores.</td>
<td class="required">No, automatically detected for file based keystores.</td>
</tr>
<tr>
<td valign="top">alias</td>
<td valign="top">The alias of the certificate used for signing in the keystore.</td>
<td valign="top" align="center">Yes, if <code>keystore</code> is specified and more than one alias exist</td>
<td class="attribute">alias</td>
<td class="description">The alias of the certificate used for signing in the keystore.</td>
<td class="required">Yes, if <code>keystore</code> is specified and more than one alias exist</td>
</tr>
<tr>
<td valign="top">certfile</td>
<td valign="top">The file containing the PKCS#7 certificate chain (<code>.p7b</code> or <code>.spc</code> files).</td>
<td valign="top" align="center" rowspan="2">Yes, unless <code>keystore</code> is specified.</td>
<td class="attribute">certfile</td>
<td class="description">The file containing the PKCS#7 certificate chain (<code>.p7b</code> or <code>.spc</code> files).</td>
<td class="required" rowspan="2">Yes, unless <code>keystore</code> is specified.</td>
</tr>
<tr>
<td valign="top">keyfile</td>
<td valign="top">
<td class="attribute">keyfile</td>
<td class="description">
The file containing the private key. <code>PEM</code> and <code>PVK</code> files are supported.
</td>
</tr>
<tr>
<td valign="top">keypass</td>
<td valign="top">
<td class="attribute">keypass</td>
<td class="description">
The password of the private key. When using a keystore, this parameter can be omitted if the keystore shares
the same password. The password can be loaded from a file by using the <code>file:</code> prefix followed by
the path of the file, or from an enviroment variable by using the <code>env:</code> prefix followed by the
name of the variable.
</td>
<td valign="top" align="center">No</td>
<td class="required">No</td>
</tr>
<tr>
<td valign="top">alg</td>
<td valign="top">The digest algorithm (SHA-1, SHA-256, SHA-384 or SHA-512)</td>
<td valign="top" align="center">No; defaults to SHA-256</td>
<td class="attribute">alg</td>
<td class="description">The digest algorithm (SHA-1, SHA-256, SHA-384 or SHA-512)</td>
<td class="required">No; defaults to SHA-256</td>
</tr>
<tr>
<td valign="top">tsaurl</td>
<td valign="top">
<td class="attribute">tsaurl</td>
<td class="description">
The URL of the timestamping authority, either RFC 3161 or Authenticode services.
You can use for example the Sectigo (http://timestamp.sectigo.com)
or the DigiCert (http://timestamp.digicert.com) services.<br>
Several URLs separated by a comma can be specified to fallback on alternative servers.
</td>
<td valign="top" align="center">No</td>
<td class="required">No</td>
</tr>
<tr>
<td valign="top">tsmode</td>
<td valign="top">The timestamping mode (RFC3161 or Authenticode)</td>
<td valign="top" align="center">No; defaults to Authenticode</td>
<td class="attribute">tsmode</td>
<td class="description">The timestamping mode (RFC3161 or Authenticode)</td>
<td class="required">No; defaults to Authenticode</td>
</tr>
<tr>
<td valign="top">tsretries</td>
<td valign="top">The number of retries for timestamping</td>
<td valign="top" align="center">No; defaults to 3</td>
<td class="attribute">tsretries</td>
<td class="description">The number of retries for timestamping</td>
<td class="required">No; defaults to 3</td>
</tr>
<tr>
<td valign="top">tsretrywait</td>
<td valign="top">The number of seconds to wait between timestamping retries</td>
<td valign="top" align="center">No; defaults to 10 seconds</td>
<td class="attribute">tsretrywait</td>
<td class="description">The number of seconds to wait between timestamping retries</td>
<td class="required">No; defaults to 10 seconds</td>
</tr>
<tr>
<td valign="top">replace</td>
<td valign="top">Tells if previous signatures should be replaced.</td>
<td valign="top" align="center">No; defaults to "false"</td>
<td class="attribute">replace</td>
<td class="description">Tells if previous signatures should be replaced.</td>
<td class="required">No; defaults to "false"</td>
</tr>
<tr>
<td valign="top">encoding</td>
<td valign="top">The encoding of the script to be signed (if it doesn't contain a byte order mark).</td>
<td valign="top" align="center">No; defaults to "UTF-8"</td>
<td class="attribute">encoding</td>
<td class="description">The encoding of the script to be signed (if it doesn't contain a byte order mark).</td>
<td class="required">No; defaults to "UTF-8"</td>
</tr>
<tr>
<td valign="top">detached</td>
<td valign="top">
<td class="attribute">detached</td>
<td class="description">
Tells if a detached signature should be generated or reused. The detached signature
is a file in the same directory using the name of the file signed with the <code>.sig</code>
suffix added (for example <code>application.exe.sig</code>).
Expand All @@ -249,9 +255,10 @@ <h3 id="ant">Ant Task</h3>
the private key isn't used for signing and no timestamping is performed).</li>
</ul>
</td>
<td valign="top" align="center">No; defaults to "false"</td>
<td class="required">No; defaults to "false"</td>
</tr>
</table>
</tbody>
</table>


<h3 id="maven">Maven plugin</h3>
Expand Down
50 changes: 50 additions & 0 deletions docs/stylesheets/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ footer, header, hgroup, menu, nav, section {

ol, ul {
/*list-style: none;*/
padding-left: 20px;
}

blockquote, q {
Expand Down Expand Up @@ -366,7 +367,13 @@ Full-Width Styles
background: #212121;
}

.mobile-only {
display: none;
}

td.required {
text-align: center;
}

/*******************************************************************************
Small Device Styles
Expand Down Expand Up @@ -420,4 +427,47 @@ Small Device Styles
font-size: 11px;
}

.desktop-only {
display: none;
}

.mobile-only {
display: initial
}

table {
border-width: 0;
}

thead {
display: none;
}

tr {
display: block;
margin-bottom: 0.5em;
}

td {
display: block;
border-width: 0;
}

td.attribute {
padding: 0;
font-weight: bold;
}

td.description {
padding-left: 2em;
}

td.required {
padding-left: 2em;
text-align: left;
}

td.required::before {
content: "Required: ";
}
}

0 comments on commit 71988ef

Please sign in to comment.