java -jar skfsclient.jar R <hostport> <did> <wsprotocol> <authtype> <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; PASSWORD |
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":"UI8srIxbZdaE8UVNHpXTjeD6IU1VR3my9uCc0wYcYIc","displayName":"johndoe"},"challenge":"dBxZbIKEeC1sGqD1UhMwsw","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.14.0","skfsFQDN":"example.strongkey.com","TXID":"1-1-167-1730935482811"}
Pre-Registration Complete.
Generating Registration response...
Nov 06, 2024 6:24:45 PM com.strongauth.skfs.fido2.artifacts.Common getRPID
INFO: rpidhash: 5a74c1ad5d9d2369d8b69580cceaf3547324c1f102e3a7711c3e14d513fd28a3
Nov 06, 2024 6:24:45 PM com.strongauth.skfs.fido2.artifacts.Common makeKeyHandle
INFO: PlaintextKeyHandle: {"type":"EC","key":"ANcDRHfSr53cOxl9MptK5EmcGsjZ0IkRs4k9GUKIqb4U","sha1":"hNY4TAuXeOz3HNlbm0JBJNExW9M","origin_hash":"uf2GEA7Us9iNmnRkLUL-jE2t7X1-LhloHpUd07joxOI"}
Simulator Response :
id = YGg7XPUNrwSsSQDRGwhojLSptYXpVHmywYEULJXTMJ-ZsEf5U1k3Vm3ZGRoi4rqawv_GmsuLeRKKpYohLRviPEPFr-3gU9E84UW62AdhBWHOs9iFTd_vMC8kXvdwAL9Ife-SwKHCcZyrLyZGHBxcO8Z9v8OEOxZuGs-qPUXJxt9K4-wCJmnHkMrA8gxLLqudNuH2QQKPsvyVumaj0rxXkjEfPUAd0hvNf41yj7DXRWeJvet6xU-xqTg56XN_jePs
rawId = YGg7XPUNrwSsSQDRGwhojLSptYXpVHmywYEULJXTMJ-ZsEf5U1k3Vm3ZGRoi4rqawv_GmsuLeRKKpYohLRviPEPFr-3gU9E84UW62AdhBWHOs9iFTd_vMC8kXvdwAL9Ife-SwKHCcZyrLyZGHBxcO8Z9v8OEOxZuGs-qPUXJxt9K4-wCJmnHkMrA8gxLLqudNuH2QQKPsvyVumaj0rxXkjEfPUAd0hvNf41yj7DXRWeJvet6xU-xqTg56XN_jePs
response = attestationObject = o2NmbXRmcGFja2VkZ2F0dFN0bXSjY2FsZyZjc2lnWEcwRQIhAPUGXgZVK9NSluYMUBcK55kiD34fLNUC9fcQNYLnXoNhAiB4jE99oMzw4kS6hvNbj3rgkVXDlrTzJyN8BAVq9J_th2N4NWOBWQHkMIIB4DCCAYOgAwIBAgIEbCtY8jAMBggqhkjOPQQDAgUAMGQxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5TdHJvbmdBdXRoIElu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WmJJS0VlQzFzR3FEMVVoTXdzdyIsIm9yaWdpbiI6Imh0dHBzOi8vZXhhbXBsZS5zdHJvbmdrZXkuY29tIiwiY3Jvc3NPcmlnaW4iOmZhbHNlfQ
type = public-key
Finished Generating Registration Response.
Registering ...
regjson =
{"svcinfo":{"did":1,"protocol":"FIDO2_0","authtype":"PASSWORD","svcusername":"svcfidouser","svcpassword":"Abcd1234!"},"payload":{"publicKeyCredential":{"id":"YGg7XPUNrwSsSQDRGwhojLSptYXpVHmywYEULJXTMJ-ZsEf5U1k3Vm3ZGRoi4rqawv_GmsuLeRKKpYohLRviPEPFr-3gU9E84UW62AdhBWHOs9iFTd_vMC8kXvdwAL9Ife-SwKHCcZyrLyZGHBxcO8Z9v8OEOxZuGs-qPUXJxt9K4-wCJmnHkMrA8gxLLqudNuH2QQKPsvyVumaj0rxXkjEfPUAd0hvNf41yj7DXRWeJvet6xU-xqTg56XN_jePs","rawId":"YGg7XPUNrwSsSQDRGwhojLSptYXpVHmywYEULJXTMJ-ZsEf5U1k3Vm3ZGRoi4rqawv_GmsuLeRKKpYohLRviPEPFr-3gU9E84UW62AdhBWHOs9iFTd_vMC8kXvdwAL9Ife-SwKHCcZyrLyZGHBxcO8Z9v8OEOxZuGs-qPUXJxt9K4-wCJmnHkMrA8gxLLqudNuH2QQKPsvyVumaj0rxXkjEfPUAd0hvNf41yj7DXRWeJvet6xU-xqTg56XN_jePs","response":{"attestationObject":"o2NmbXRmcGFja2VkZ2F0dFN0bXSjY2FsZyZjc2lnWEcwRQIhAPUGXgZVK9NSluYMUBcK55kiD34fLNUC9fcQNYLnXoNhAiB4jE99oMzw4kS6hvNbj3rgkVXDlrTzJyN8BAVq9J_th2N4NWOBWQHkMIIB4DCCAYOgAwIBAgIEbCtY8jAMBggqhkjOPQQDAgUAMGQxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5TdHJvbmdBdXRoIEluYzEiMCAGA1UECxMZQXV0aGVudGljYXRvciBBdHRlc3RhdGlvbj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HBzOi8vZXhhbXBsZS5zdHJvbmdrZXkuY29tIiwiY3Jvc3NPcmlnaW4iOmZhbHNlfQ"},"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.14.0","skfsFQDN":"example.strongkey.com","TXID":"1-1-166-1730935486192"}
Registration Complete.
*******************************
Done with Register!