| .. | .. |
|---|
| 111 | 111 | Signature signature; |
|---|
| 112 | 112 | try { |
|---|
| 113 | 113 | signature = Signature.getInstance(SignatureHelper.SIGNATURE_GENERATION_ALGORITHM); |
|---|
| 114 | | - signature.initSign(sh.generatePrivateKey(new File("/Users/cproberto/Documents/wsPython/doky/tests/privkey.pkcs8"))); |
|---|
| 114 | + signature.initSign(sh.generatePrivateKey(new File("/Users/cproberto/Documents/wsPython/doky/tests/securis_private_key.pkcs8"))); |
|---|
| 115 | 115 | |
|---|
| 116 | 116 | sh.prepareSignature(signature, licBean); |
|---|
| 117 | 117 | |
|---|
| .. | .. |
|---|
| 135 | 135 | public static void main(String[] args) throws SeCurisException { |
|---|
| 136 | 136 | Paths.get(new File("/Users/cproberto/Documents/wsCurisIT/SeCurisClient/license.req").toURI()); |
|---|
| 137 | 137 | |
|---|
| 138 | | - RequestBean req = ReqGenerator.getInstance().loadRequest(new File("/Users/cproberto/Documents/wsCurisIT/SeCurisClient/license.req")); |
|---|
| 138 | + RequestBean req = ReqGenerator.getInstance().loadRequest(new File("/Users/cproberto/Downloads/license.req")); |
|---|
| 139 | 139 | Map<String, Object> metadata = new TreeMap<>(); |
|---|
| 140 | 140 | metadata.put("maxUsers", 23); |
|---|
| 141 | 141 | metadata.put("maxInstances", 12); |
|---|
| 142 | | - LicenseBean lic = LicenseGenerator.getInstance().generateLicense(req, metadata, new Date(new Date().getTime() + 3600 * 1000), "L01", "LIC-9812987123-12837129873"); |
|---|
| 143 | | - LicenseGenerator.getInstance().save(lic, new File("/Users/cproberto/Documents/wsCurisIT/SeCurisClient/license.lic")); |
|---|
| 142 | + LicenseBean lic = LicenseGenerator.getInstance().generateLicense(req, metadata, new Date(new Date().getTime() + 3600 * 1000), "CurisData01", "LIC-9812987123-12837129873"); |
|---|
| 143 | + LicenseGenerator.getInstance().save(lic, new File("/Users/cproberto/Downloads/license_curisdata.lic")); |
|---|
| 144 | 144 | |
|---|
| 145 | 145 | System.out.print("os.arch: " + System.getProperty("os.arch") + " " + System.getProperty("os.name")); |
|---|
| 146 | 146 | |
|---|