java -jar skfsclient.jar R <hostport> <did> <wsprotocol> <authtype> [ <accesskey> <secretkey> | <svcusername> <svcpassword> ] <username> <origin> <crossorigin>
Value |
Explanation |
---|---|
hostport |
Host and port to access the FIDO server |
did |
Unique domain identifier that belongs to SKCE |
wsprotocol |
Web service protocol; REST | SOAP |
authtype |
Authentication type; HMAC | PASSWORD |
accesskey |
Access key for use in identifying a secret key |
secretkey |
Secret key for HMACing a request |
svcusername |
Username used for PASSWORD-based authorization |
svcpassword |
Password used for PASSWORD-based authorization |
username |
Username for registration, authentication, or getting keys info |
origin |
Origin to be used by the FIDO Client Simulator |
crossorigin |
Boolean that will determine if client data allows crossorigin or not - to be used for the simulator |
$example:~/skfsclient> java -jar skfsclient.jar R https://example.strongkey.com:8181 1 REST PASSWORD svcfidouser Abcd1234! johndoe https://example.strongkey.com false
Copyright (c) 2001-2024 StrongAuth, Inc. All rights reserved.
REST Registration with PASSWORD
*******************************
preregjson =
{"svcinfo":{"did":1,"protocol":"FIDO2_0","authtype":"PASSWORD","svcusername":"svcfidouser","svcpassword":"Abcd1234!"},"payload":{"username":"johndoe","displayname":"johndoe","options":{},"extensions":"{}"}}
Calling preregister @ https://example.strongkey.com:8181/skfs/rest/preregister
Response : {"Response":{"rp":{"name":"FIDOServer","id":"strongkey.com"},"user":{"name":"johndoe","id":"JfhrvaRw7Pt306__R5TUeuKobjs7mPyBDWB0iosxDgw","displayName":"johndoe"},"challenge":"eS-RzBxpuX32thvJMK70QA","pubKeyCredParams":[{"type":"public-key","alg":-7},{"type":"public-key","alg":-35},{"type":"public-key","alg":-36},{"type":"public-key","alg":-8},{"type":"public-key","alg":-47},{"type":"public-key","alg":-257},{"type":"public-key","alg":-258},{"type":"public-key","alg":-259},{"type":"public-key","alg":-37},{"type":"public-key","alg":-38},{"type":"public-key","alg":-38}],"excludeCredentials":[],"attestation":"direct"},"responseCode":"FIDO-MSG-0002","skfsVersion":"4.13.0","skfsFQDN":"example.strongkey.com","TXID":"1-1-167-1717627613415"}
Pre-Registration Complete.
Generating Registration response...
Jun 05, 2024 3:46:56 PM com.strongauth.skfs.fido2.artifacts.Common getRPID
INFO: rpidhash: 5a74c1ad5d9d2369d8b69580cceaf3547324c1f102e3a7711c3e14d513fd28a3
Jun 05, 2024 3:46:56 PM com.strongauth.skfs.fido2.artifacts.Common makeKeyHandle
INFO: PlaintextKeyHandle: {"type":"EC","key":"AJ-JEO8GwgvifXVq1wQfyjSpZ4DIYjGGgmnttd-DfaUt","sha1":"N-wohY01ua5P5MKMaJZFPIs6x0A","origin_hash":"uf2GEA7Us9iNmnRkLUL-jE2t7X1-LhloHpUd07joxOI"}
Simulator Response :
id = pqBOcDW7uYfRqEMY660IyuS6VzyQI2nX2oKUjwv9uy9W3y6FwzG2M9GGK9eUOa9dq2zbEoLGunjWrRjieM5_r4rM0hZaUtBtJWk6gfUYCWn-9Mp3buA_EVyZIMfjrANG6xgWPITT4MMG4sUl7m080mCISSAyKi4WaUZ_CcSPLvJl8q7swnw3MZX51jjS6LRSb5AlZQou5-nlT6Tmy6l45cNagb7IDJwdbW16j-XblEZY0lSzHss5vVF0W_cpIBsf
rawId = pqBOcDW7uYfRqEMY660IyuS6VzyQI2nX2oKUjwv9uy9W3y6FwzG2M9GGK9eUOa9dq2zbEoLGunjWrRjieM5_r4rM0hZaUtBtJWk6gfUYCWn-9Mp3buA_EVyZIMfjrANG6xgWPITT4MMG4sUl7m080mCISSAyKi4WaUZ_CcSPLvJl8q7swnw3MZX51jjS6LRSb5AlZQou5-nlT6Tmy6l45cNagb7IDJwdbW16j-XblEZY0lSzHss5vVF0W_cpIBsf
response = attestationObject = o2NmbXRmcGFja2VkZ2F0dFN0bXSjY2FsZyZjc2lnWEcwRQIgLoHgGo8qV49qI8YLsxqrf2B7pKrTPGLmkmPt4qztRakCIQDt4ZYH38xnVcZg_wTbATIbBExtVqBuSYzKSl7HQO-eX2N4NWOBWQHkMIIB4DCCAYOgAwIBAgIEbCtY8jAMBggqhkjOPQQDAgUAMGQxC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ViYXV0aG4uY3JlYXRlIiwiY2hhbGxlbmdlIjoiZVMtUnpCeHB1WDMydGh2Sk1LNzBRQSIsIm9yaWdpbiI6Imh0dHBzOi8vZXhhbXBsZS5zdHJvbmdrZXkuY29tIiwiY3Jvc3NPcmlnaW4iOmZhbHNlfQ
type = public-key
Finished Generating Registration Response.
Registering ...
regjson =
{"svcinfo":{"did":1,"protocol":"FIDO2_0","authtype":"PASSWORD","svcusername":"svcfidouser","svcpassword":"Abcd1234!"},"payload":{"publicKeyCredential":{"id":"pqBOcDW7uYfRqEMY660IyuS6VzyQI2nX2oKUjwv9uy9W3y6FwzG2M9GGK9eUOa9dq2zbEoLGunjWrRjieM5_r4rM0hZaUtBtJWk6gfUYCWn-9Mp3buA_EVyZIMfjrANG6xgWPITT4MMG4sUl7m080mCISSAyKi4WaUZ_CcSPLvJl8q7swnw3MZX51jjS6LRSb5AlZQou5-nlT6Tmy6l45cNagb7IDJwdbW16j-XblEZY0lSzHss5vVF0W_cpIBsf","rawId":"pqBOcDW7uYfRqEMY660IyuS6VzyQI2nX2oKUjwv9uy9W3y6FwzG2M9GGK9eUOa9dq2zbEoLGunjWrRjieM5_r4rM0hZaUtBtJWk6gfUYCWn-9Mp3buA_EVyZIMfjrANG6xgWPITT4MMG4sUl7m080mCISSAyKi4WaUZ_CcSPLvJl8q7swnw3MZX51jjS6LRSb5AlZQou5-nlT6Tmy6l45cNagb7IDJwdbW16j-XblEZY0lSzHss5vVF0W_cpIBsf","response":{"attestationObject":"o2NmbXRmcGFja2VkZ2F0dFN0bXSjY2FsZyZjc2lnWEcwRQIgLoHgGo8qV49qI8YLsxqrf2B7pKrTPGLmkmPt4qztRakCIQDt4ZYH38xnVcZg_wTbATIbBExtVqBuSYzKSl7HQO-eX2N4NWOBWQHkMIIB4DCCAYOgAwIBAgIEbCtY8jAMBggqhkjOPQQDAgUAMGQxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5TdHJvbmdBdXRoIEluYzEiMCAGA1UECxMZ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LNzBRQSIsIm9yaWdpbiI6Imh0dHBzOi8vZXhhbXBsZS5zdHJvbmdrZXkuY29tIiwiY3Jvc3NPcmlnaW4iOmZhbHNlfQ"},"type":"public-key"},"strongkeyMetadata":{"version":"1.0","create_location":"Sunnyvale, CA","username":"johndoe","origin":"https://example.strongkey.com"}}}
Calling register @ https://example.strongkey.com:8181/skfs/rest/register
Response : {"Response":"Successfully processed registration response","responseCode":"FIDO-MSG-0004","pkixValidated":false,"skfsVersion":"4.13.0","skfsFQDN":"example.strongkey.com","TXID":"1-1-166-1717627617527"}
Registration Complete.
*******************************
Done with Register!