wso2 / product-iots

Welcome to the WSO2 IoT Server source code! For info on working with the WSO2 IoT Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
184 stars 181 forks source link

iot-server enrollment failed with Android Device #1915

Open wiwengweng opened 5 years ago

wiwengweng commented 5 years ago

Description:

Hi, I am unable to register a new android device in iot-server. I change the IP with the script so that I can access the server from other machine.

with the error:

'enrollment failed, please contact administrator. Code: 500'
Error:
javax.net.ssl.SSLHandshakeException:
java.security.cert.CerPathVilidatiorException: Trust anchor for certification path not found

Suggested Labels:

Suggested Assignees:

Affected Product Version: iot-server 3.3.0

OS, DB, other environment details and versions:
iot-server on Linux android apk on Android 9 +

Steps to reproduce: install and run iot-server:L

  1. change-ip with my actual IP, like 10.1.10.3
  2. run broker, iot-server and analytics server
  3. access the iot-server device mgt page, and download android apk
  4. install apk in my phone
  5. click 'skip and go to enrollment', enter IP address (either with or without port 9443 is tried ) and then enter the organization 'carbon.super(I don't know if I should modified this?)' and username/password(admin/admin) to register the device
  6. get the enrollment failed feedback.

Related Issues:

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity.