Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Login failure: com.ca.mas.foundation.MASException: Unable to post to register_device: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. #14

Open
voltumna opened this issue Oct 5, 2020 · 0 comments

Comments

@voltumna
Copy link

voltumna commented Oct 5, 2020

What am I doing wrong?
I tried with self signed and imported in the gateway as the trust anchor and also tried to change the msso_config.json to have multiple certs, including a signed one with its intermediate cert and root cert

{ "server": { "hostname": "apiida.xyz", "port": 8443, "prefix": "", "server_certs": [ [ "-----BEGIN CERTIFICATE-----", "MIIC8DCCAdigAwIBAgIIeTkzX4tbnVowDQYJKoZIhvcNAQEMBQAwFTETMBEGA1UEAxMKYXBpaWRh", "Lnh5ejAgFw0yMDEwMDExMDQ3NThaGA8yMDcwMDkxOTEwNDc1OFowFTETMBEGA1UEAxMKYXBpaWRh", "Lnh5ejCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJmxc1idoWB6kGQd1Sao+RrMI+2A", "wc7uU4rTtK8XhH+bKUY6n9DQXhoO3cvjILAlL0elMFMK5QUJ6M9vwKXUZWGGeVKS9qiMERu9WW8R", "cfzEwA8QRLJabXFuspj8QJiPC9BinfieIZBQujJ5KMueB5R0mGFF1wKDyNbyDiOokhgC2W6TWWdR", "+NerhsyD2LPziMmdlxVd5Q1PvyeaIOGdEJzeUFAbyiXSII2sbjkSxBnfOf+CXFiCdpIZvaZdj8kG", "yUOWuKRv1FI94dTB8VY4xJnTYRD+OGrc8qr2LWHeIsKPjX/fL5V9yD72HUC6G4LWloB0M7XplVFw", "BpZ4zGIwxV0CAwEAAaNCMEAwHQYDVR0OBBYEFDEJVL4mq/crwMuinZo2UkDNFV/5MB8GA1UdIwQY", "MBaAFDEJVL4mq/crwMuinZo2UkDNFV/5MA0GCSqGSIb3DQEBDAUAA4IBAQABxsGT3J8mb+3wSntR", "l75FYuW4+5aQYIEcvn9D30jLmt7TEIcEP/gYZSTFF9hPQh6M9zBEDN2foXeKoSk/gL1IeLVvV5hY", "+yHbi/yxDWltZnwsInD6Qb2fn76W7yqqSZSHViZR8fL11KLCqZZYB9p7VdY6bo7loi5On/nmKaw+", "mWebK5nMQ+14bTG1cgoLWF5My9rPnbIZt36hZgS67ACy9BiJGtCtNp2hwdMVzrZQ+PLHx6I0u5Q2", "Cu0UwCueRcDWG478WFXj19AI9y7er1+qlZql+MmIe0dpFEQt5419MOJkeha1gk4EsD8IWzrzsVhM", "0pAHjq6vqBBv7tCM89o1", "-----END CERTIFICATE-----" ] ] }, "oauth": { "client": { "organization": "Maurizio", "description": "What is the app used for?", "client_name": "Maurizio App", "client_type": "confidential", "registered_by": "admin", "client_custom": {}, "client_ids": [ { "client_id": "60695acf-a482-4392-be59-40ff12e8ada2", "client_secret": "", "scope": "oob", "redirect_uri": "oob", "environment": "ALL", "status": "ENABLED", "registered_by": "admin", "service_ids": "", "account_plan_mapping_ids": "", "client_key_custom": { "openid_registration": { "request": {}, "oauth_client": true, "response": { "client_id": "60695acf-a482-4392-be59-40ff12e8ada2", "client_secret": "6770e6b5-e4c2-4cfd-9dc1-d158d3b00e6e", "client_secret_expires_at": "0", "client_id_issued_at": 1601924006, "registration_access_token": "", "registration_client_uri": "", "token_endpoint_auth_method": "client_secret_basic", "token_endpoint_auth_signing_alg": "", "application_type": "", "redirect_uris": [ "oob" ], "client_name": "Maurizio App", "subject_type": "pairwise", "sector_identifier_uri": "", "contacts": [], "response_types": [], "grant_types": [], "id_token_signed_response_alg": "HS256", "userinfo_signed_response_alg": "", "environment": "ALL", "organization": "Maurizio", "master": false, "description": "What is the app used for?", "scope": "oob", "jwks": "", "jwks_uri": "" } } } } ] }, "system_endpoints": { "authorization_endpoint_path": "/auth/oauth/v2/authorize", "token_endpoint_path": "/auth/oauth/v2/token", "token_revocation_endpoint_path": "/auth/oauth/v2/token/revoke", "usersession_logout_endpoint_path": "/connect/session/logout", "usersession_status_endpoint_path": "/connect/session/status" }, "oauth_protected_endpoints": { "userinfo_endpoint_path": "/openid/connect/v1/userinfo" } }, "mag": { "system_endpoints": { "device_register_endpoint_path": "/connect/device/register", "device_renew_endpoint_path": "/connect/device/renew", "device_client_register_endpoint_path": "/connect/device/register/client", "device_remove_endpoint_path": "/connect/device/remove", "client_credential_init_endpoint_path": "/connect/client/initialize", "authenticate_otp_endpoint_path": "/auth/generateOTP" }, "oauth_protected_endpoints": { "enterprise_browser_endpoint_path": "/connect/enterprise/browser", "device_list_endpoint_path": "/connect/device/list", "device_metadata_endpoint_path": "/connect/device/metadata" }, "mobile_sdk": { "sso_enabled": true, "location_enabled": true, "location_provider": "network", "msisdn_enabled": true, "enable_public_key_pinning": false, "trusted_public_pki": false, "trusted_cert_pinned_public_key_hashes": [], "client_cert_rsa_keybits": 1024 }, "ble": { "msso_ble_service_uuid": "980c2f36-bde3-11e4-8dfc-aa07a5b093db", "msso_ble_characteristic_uuid": "980c34cc-bde3-11e4-8dfc-aa07a5b093db", "msso_ble_rssi": -80 } }, "custom": { "oauth_demo_protected_api_endpoint_path": "/oauth/v2/protectedapi/foo", "mag_demo_products_endpoint_path": "/protected/resource/products" } }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant