christian-schlichtherle / truelicense

An open source engine for license management on the Java Virtual Machine.
https://truelicense.namespace.global
Apache License 2.0
319 stars 66 forks source link

generate key from CLI #34

Open Haniba3l opened 1 year ago

Haniba3l commented 1 year ago

am trying to generate a key from CLI when i run the command java -jar JarHome/stargazer-keygen-1.0-SNAPSHOT-standalone.jar generate license.lic -verbose true -output -{"consumerAmount":1,"consumerType":"User","holder":"CN=Bank","issued":1690437913563,"notAfter":1722063600000,"issuer":"CN=Company","subject":"StarGazer 2020"} -output i get the line in red and a license with this standard values is created.

global.namespace.truelicense.v4.V4License@f1ce2f88[subject="StarGazer 2020", holder="CN=Unknown", issuer="CN=Company Inc.", issued=Thu Jul 27 09:05:14 EET 2023, notBefore=null, notAfter=null, consumerType="User", consumerAmount=1, info=null]

if i try to use this -input global.namespace..... i get an error.. java.nio.file.FileSystemException: global.namespace.truelicense.v4.V4License@752005ff[subject=StarGazer 2020,holder=CN=Christian Schlichtherle,issuer=CN=Company Inc.,issued=Sat May 23 18:55:08 CEST 2020,notBefore=Sat May 23 18:55:08 CEST 2020,notAfter=Sun May 23 18:55:08 CEST 2024,consumerType=User,consumerAmount=1,info=null]: File name too long

How can i use the V4 what is the code after the @? Thank you