Skip to content

Commit 02c0914

Browse files
committed
Add signing of jars
1 parent 61dc87c commit 02c0914

4 files changed

Lines changed: 20 additions & 1 deletion

File tree

Basic/ping-pong/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,10 @@ You should see the following message, indicating that PartyB responded to your p
108108

109109
`Successfully pinged O=PartyB,L=New York,C=US.`.
110110

111+
### Appendix - Signing jar
112+
Refer to: [https://training.corda.net/operations/package-jar/](https://training.corda.net/operations/package-jar/)
113+
Generate key
114+
```
115+
keytool -keystore jar-sign-keystore.jks -keyalg RSA -genkey -dname "OU=Corda Network, O=Corda Consortium, L=New York, C=US" -storepass password -keypass password -alias awesome-cordapp-signer -validity 3650
116+
keytool -importkeystore -srckeystore jar-sign-keystore.jks -destkeystore jar-sign-keystore.pkcs12 -deststoretype pkcs12
117+
```
2.16 KB
Binary file not shown.
2.54 KB
Binary file not shown.

Basic/ping-pong/workflows/build.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
apply plugin: 'net.corda.plugins.cordapp'
22
apply plugin: 'net.corda.plugins.quasar-utils'
33

4+
def keystoreFile = new File('../jar-sign-keystore.pkcs12')
5+
46
cordapp {
57
targetPlatformVersion corda_platform_version
68
minimumPlatformVersion corda_platform_version
79
workflow {
8-
name "Pingpng Flows"
10+
name "Pingpong Flows"
911
vendor "Corda Open Source"
1012
licence "Apache License, Version 2.0"
1113
versionId 1
1214
}
15+
signing {
16+
enabled true
17+
options {
18+
keystore keystoreFile.absolutePath
19+
alias "awesome-cordapp-signer"
20+
storepass "password"
21+
keypass "password"
22+
storetype "PKCS12"
23+
}
24+
}
1325
}
1426

1527
sourceSets {

0 commit comments

Comments
 (0)