Offline License

Hello!

I can make all the process from generating the Offline License Request file to getting the Offline License file using the LexActivator library plus the WebAPI, but what it is not good for me is that (as far I could tell) for the WebAPI part I need to use my company WebAPI key in Authentication Bearer in the header, why can’t I use just the client license key or some kind of client ID for it? Is there a way to do it that I missed or is it the only way to do so is sending my key? I ask this because for binaries that need to be distributed, this is a huge security risk.

Hello @AugustoMartins,

Thank you for reaching out.

If you are automating the offline activation workflow using our Web API, the recommended and secure approach is to ensure that the access token is only used on your backend.

Your flow should be:

  • The client generates the offline activation request file.
  • The client sends this data to your backend.
  • Your backend calls the Cryptlex Web API using the access token. A valid access token with no permissions is sufficient for this endpoint.
  • Your backend returns the offline license response to the client.

This ensures that the access token is never exposed on the client side. Storing or embedding the access token within the application binary is not recommended, as it poses a security risk.

The problem is that our application is not online, we do not have a backend, we deliver the binaries to the client and they can use in many different machines. I would like to suggest to add this kind of function to LexActivator library or making it possible to connect to Cryptlex Web API using a client Key, instead of my company Key.

At the moment, the requirement appears a bit unclear. You mentioned that the application is not online, but at the same time, you require a function in LexActivator to connect to the Cryptlex Web API, which itself requires internet connectivity.

What I meant is that our application is not in a web server, so we do not have a backend for it, in order to support automatic generation of Offline License, we would need to create a server just for that, which is non-optimal.

The suggestions are:
1- Support the complete generation of offline license in LexActivator library without the need of a WebApi key; or
2- Add an option to generate the offline license in the WebApi but using a client key instead of company key

Thank you for the clarification.

We also offer a customer portal where your users can log in and generate the offline activation response files themselves, without requiring you to set up a backend service. Would this approach work for your use-case?

You can refer to the relevant guide here: Customer Portal | Cryptlex Documentation

Yes, we know about the possibility of the user to generate for themselves, but some of our users are going to install our product in many offline machines and we would like to make this process easier for them. We created an internal POC that would automatize this, but we won’t release it because of the WebApi key issue.

Thanks for the help, and I would really like to have this option to generate the offline license without the need to share our WebApi key. Is there an official channel for service suggestion?

Hey @AugustoMartins,

I will discuss your use-case with our team and keep you updated soon.

Hello! Any news on this? Can we download and upload the offline activation request using just the LexAcivator library?

Thanks!

Dear @AugustoMartins

Thank you for following up.

We are currently looking into it and expect to have an update for you by next week.

Dear @AugustoMartins,

Thanks for bearing with us on this one, and apologies for the wait.

We discussed your use case internally, and here is where we landed.

You raised two concerns in this thread: you do not want to ship the access token inside your binaries, and you do not want to stand up and maintain a server just to automate offline activation. Both are fair, and the good news is that the second one is smaller than it looks.

You do not need a backend in the traditional sense. A single serverless function is enough, and it can be hosted on Cloudflare Workers for free. It would act as a thin proxy: your application posts the offline activation request data to it, the function calls the Cryptlex Web API with the access token, and it returns the activation response. The token lives only inside the function environment and never ships with your binaries. There is no server to provision, patch, or keep running.

Since this is the only piece standing between you and releasing the proof of concept you already built, we are happy to write the function for you. You would only need to deploy it on your own Cloudflare account and point your application at the resulting URL.