java -cp skceclient.jar EncryptionEngine https://<host:port> <did> <svcusername> <svcpassword> CE <sourcefile> -wp <ws-protocol> [-dn <ldapdn>] -lu <ldapuser> -lg <ldapgroups> [-ra <requiredauth>] [-u <uniquekey>] [-a <algorithm>] [-s <keysize>] -f <propertiesfile> [-n <notes>]
|
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 |
DE (Cloud 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 |
|
propertiesfile |
Full directory path to properties file with following cloud configuration: |
|
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) |
$ example:~/topaz> java -cp skceclient.jar EncryptionEngine https://saka.strongkey.com:8181 2 service-cc-ce Abcd1234! CE abc.txt -wp SOAP -lu encryptdecrypt -lg cn=EncryptionAuthorized,did=2,ou=groups,ou=v2,ou=SKCE,ou=StrongAuth,ou=Applications,dc=strongauth,dc=com -f enc-properties.properties
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 to Cloud at https://saka.strongkey.com:8181 ...
Response : Uploaded abc.txt.zenc to AWS. Instance name: myawsstoragecloud; Bucket: strongkey-demo-bucket
SHA256 message digest : e8f39b66a3285ed4142643b7de12086172af1ca2f69c0a26a269273e69b8c413
Done!