Install & Initialize SDK on the Server Side
The next step of enabling encrypted communications is to install the Virgil SDKThe SDK helps take tedious complexity out of coding by providing APIs for all of Virgil Services. in your chosen language on your server side.
Developers must install and initialize the Virgil SDK on the server side to sign any user's Virgil Card(s). Thus creating a trusted relationship between the developer's Application and each user.
Install the SDK with the getting started guide.
Don't see your language? Virgil is also available as a REST API.
The SDK is initialized with your Application's credentials. If you did not create a Developer accountDevelopers will need to register their application at Virgil Services to use Virgil Security infrastructure create account yet, you can do so now.
Next, we need to initialize the server side SDK. To do so, we need to pass in a few more details than on the client side, including the App IDThis is an identifier, which uniquely identifies an Application at Virgil Services more ..., App KeyThis is a secure Private Key for your application that you receive during registration at Virgil Services more ..., and App Key passwordA password set for an App Key that you receive during application registration at Virgil Services you created on sign up.
Crypto crypto = new VirgilCrypto();
VirgilClientContext ctx = new VirgilClientContext(APP_TOKEN);
VirgilClient client = new VirgilClient(ctx);
RequestSigner requestSigner = new RequestSigner(crypto);
// Import application private key
PrivateKey appKey = crypto.importPrivateKey(APP_PRIVATE_KEY.getBytes(),
When we have already set up the Virgil SDK on the server side, we can finally create Virgil Cards for the users.