Product Documentation

Syntax

java -cp skceclient.jar EncryptionEngine https://<host:port> <did> <svcusername> <svcpassword> E  <sourcefile> [-dn <ldapdn>] -lu <ldapuser> -lg <ldapgroups> -wp <ws-protocol> [-ra <requiredauth>] [-u <uniquekey>] [-a <algorithm>] [-s <keysize>] [-t <targetlocation>] [-n <notes>] 

Values

Value

Explanation

did

Unique domain identifier that belongs to SKCE.

https://<host:port>

The host URL where SKCE service is listening 

Example: https://skce.strongauth.com:8181

svcusername

Service credentials: username

svcpassword

Service credentials: password

command

E (encrypt)

sourcefile

Full pathname of file to be encrypted or decrypted

ldapdn

The full LDAP DN of the user (optional)

ldapuser

The type of key to be stored in the KA.

ws-protocol

Web Service protocol to be used for this operation. Allowed values are SOAP | REST

ldapgroups

List of LDAP groups to determine authorization for decryption (hyphen (-) separated list)

requiredauth

(Optional) Integer number ranging from 0 to 3; to indicate the level of authorization needed to be able to decrypt the file. Default value is 0; meaning no additional authorization is needed

targetlocation

(Optional) Target destination path to store output file

notes

(Optional) notes for the operation

uniquekey

(Optional) Generate a unique encryption key for encrypt operation?  [true | false]

algorithm

(Optional) Encryption-key algorithm AES | TDEA

keysize

(Optional) Encryption-key size (if a new key is to be generated)
                     
AES  : 128 | 192 | 256
TDEA : 112 | 168

Output

$ example:~/topaz> java -cp skceclient.jar EncryptionEngine https://saka.strongkey.com:8181 2 service-cc-ce Abcd1234! E abc.txt -dn "cn=encryptdecrypt,did=2,ou=users,ou=v2,ou=SKCE,ou=StrongAuth,ou=Applications,dc=strongauth,dc=com" -lu encryptdecrypt -lg cn=EncryptionAuthorized,did=2,ou=groups,ou=v2,ou=SKCE,ou=StrongAuth,ou=Applications,dc=strongauth,dc=com -wp SOAP -u false
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.management/javax.management.openmbean=ALL-UNNAMED --add-opens java.management/javax.management=ALL-UNNAMED --add-opens java.base/sun.security.provider=ALL-UNNAMED

skceclient.jar 4.0 (Build 116)
Copyright (c) 2001-2025 StrongAuth, Inc. All rights reserved.

Calling Encrypt at https://saka.strongkey.com:8181 ...
AES
256
false
SHA256 message digest received   : 69e186010947b6a37b86bb0dec3a320a792e4f88157e70ac109b454142d53306
SHA256 message digest calculated : 69e186010947b6a37b86bb0dec3a320a792e4f88157e70ac109b454142d53306
SHA sum verified! Encryption successful
Done!