Skip to content

Commit

Permalink
Add certificate and keystore
Browse files Browse the repository at this point in the history
README update.
Fix and add gradle tasks.
  • Loading branch information
hvvka committed May 16, 2018
1 parent eb1317a commit 0a8f4a4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $ keytool -export -alias calc -keystore calc.jks -rfc -file calc.csr

**Important:** Add the certificate as a trusted one in Java Control Panel.
For Mac: System Preferences > Java > Open Java Control Panel > Security tab > Manage certificates > User > Import.
Import it possibly everywhere (trusted certificates, sercure site etc.).
Import it possibly everywhere (trusted certificates, secure site etc.).

- create *.jnlp file with a signed jar
```bash
Expand Down
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ task genkey {

task createJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.hania.Runner'
//'Implementation-Title': rootProject.name,
// 'Implementation-Version': version,
attributes 'Implementation-Title': rootProject.name,
'Implementation-Version': version,
'Main-Class': 'com.hania.Runner'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
}

task wrapper(type: Wrapper) {
gradleVersion = '4.7'
}
21 changes: 21 additions & 0 deletions calc.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDhzCCAm+gAwIBAgIEDeMLnjANBgkqhkiG9w0BAQsFADB0MQswCQYDVQQGEwJQ
TDEUMBIGA1UECBMLRG9sbnkgU2xhc2sxEDAOBgNVBAcTB0JyZXNsYXUxDDAKBgNV
BAoTA1BXcjEfMB0GA1UECxMWRWxlY3Ryb25pY3MgRGVwYXJ0bWVudDEOMAwGA1UE
AxMFaHZ2a2EwHhcNMTgwNTEwMTkyOTE2WhcNMTgwODA4MTkyOTE2WjB0MQswCQYD
VQQGEwJQTDEUMBIGA1UECBMLRG9sbnkgU2xhc2sxEDAOBgNVBAcTB0JyZXNsYXUx
DDAKBgNVBAoTA1BXcjEfMB0GA1UECxMWRWxlY3Ryb25pY3MgRGVwYXJ0bWVudDEO
MAwGA1UEAxMFaHZ2a2EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCQ
bnKHIZ4i2pL8VnMoRTCEjMWMjrdzHsezfrwnMOGHNahAMQrbug92djSbM3BG+WYB
vzYZxmxe6RU4TA9OLZUwaSa4RFBW79ZBmPUryQf5nKt8ERS8SWVniRaQrjvUKtMe
++44XnSPtho09bzurfglrVdFldg+VvXliNLX4VTVlKde6VA6/szOGha6Y9a3/XZL
ffRJrUSsKklIqQLwth3JrDfxOUcS5ve9mnZjnSO4eevE4oBvq1YCjp2MW9oRFZAk
mKFm69tBd41QP94xmFnnjZ5JzKWpuAbFAHP8E/qCgnVGowejTrArLIwZI4edc9ET
xSVZq0LX2+js+7o7YdFlAgMBAAGjITAfMB0GA1UdDgQWBBRN/wJX4iJj7QH6kEYQ
DG4iHWpU0zANBgkqhkiG9w0BAQsFAAOCAQEAA8ycqM0P5sLoRcTo4gVXNsEZjecL
MWSD4M2FQb7+3w+OQhFf8Y74PYDozyvzZ94RyleEY5Fe2BTUMc6N9y5VnikdPOZP
GbJnzIY5uLWBWRAVtzGcKCm02hj9W+OUj6BTqRv1fwgkenX5je3T3fyzDpXK5zud
IFAl/i3esYMwnhVlhZ2Sarhd3kQ55BnxmYDTLQA01H8MFmezZp/WdJCKf1bBFQwc
+OcwLPTz4+t53xa7Sbcq9HWShjFOtQPp73gB8pu8M2oQJqD/xyULcSZa++ul9kBv
pN8BdllI+ftEEM4/4tP7FAtNwgIn3i7DkxvU8D89DnMhWyoo4jJBtpQ9sQ==
-----END CERTIFICATE-----
Binary file added calc.jks
Binary file not shown.

0 comments on commit 0a8f4a4

Please sign in to comment.