Hi Glen kim, I has authorization IotvitiyCloud application and install
github certification at java carets keystore .Below is whole running log with
Cloud Server .
Thanks for your support !
-----------------------Put auth provider name(ex: github)githubPut auth
code(provided by auth provider)bf9beb5db17ea476fa46Host
coap+tcp://sauthProvider githubauthCode bf9beb5db17ea476fa46Register account to
cloud using github bf9beb5db17ea476fa46OCCloudRegisterLogin return 0Waiting
response..-----------------------
----------------------------------------
java -jar target/CloudResourceDirectory-0.0.1-SNAPSHOT.jar 5685-----RD
SERVER-----Mar 30, 2016 11:18:56 AM com.mongodb.diagnostics.logging.JULLogger
logINFO: Cluster created with settings {hosts=[127.0.0.1:27017], mode=SINGLE,
requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms',
maxWaitQueueSize=500}Mar 30, 2016 11:18:56 AM
com.mongodb.diagnostics.logging.JULLogger logINFO: No server chosen by
WritableServerSelector from cluster description
ClusterDescription{type=UNKNOWN, connectionMode=SINGLE,
all=[ServerDescription{address=127.0.0.1:27017, type=UNKNOWN,
state=CONNECTING}]}. Waiting for 30000 ms before timing outMar 30, 2016
11:18:56 AM com.mongodb.diagnostics.logging.JULLogger logINFO: Opened
connection [connectionId{localValue:1, serverValue:8}] to 127.0.0.1:27017Mar
30, 2016 11:18:56 AM com.mongodb.diagnostics.logging.JULLogger logINFO: Monitor
thread successfully connected to server with description
ServerDescription{address=127.0.0.1:27017, type=STANDALONE, state=CONNECTED,
ok=true, version=ServerVersion{versionList=[2, 4, 9]}, minWireVersion=0,
maxWireVersion=0, electionId=null, maxDocumentSize=16777216,
roundTripTimeNanos=638698}Mar 30, 2016 11:18:56 AM
com.mongodb.diagnostics.logging.JULLogger logINFO: Opened connection
[connectionId{localValue:2, serverValue:9}] to 127.0.0.1:27017Mar 30, 2016
11:18:56 AM io.netty.handler.logging.LoggingHandler channelRegisteredINFO: [id:
0x3b9c9ed6] REGISTEREDMar 30, 2016 11:18:56 AM
io.netty.handler.logging.LoggingHandler bindINFO: [id: 0x3b9c9ed6]
BIND(0.0.0.0/0.0.0.0:5685)press 'q' to terminateMar 30, 2016 11:18:56 AM
io.netty.handler.logging.LoggingHandler channelActiveINFO: [id: 0x3b9c9ed6,
/0:0:0:0:0:0:0:0:5685] ACTIVE11:18:56:748 [D] Connection status of TCP CoAP
SERVER : trueMar 30, 2016 11:19:33 AM io.netty.handler.logging.LoggingHandler
logMessageINFO: [id: 0x3b9c9ed6, /0:0:0:0:0:0:0:0:5685] RECEIVED: [id:
0x343a885f, /127.0.0.1:59587 => /127.0.0.1:5685]Mar 30, 2016 11:19:33 AM
io.netty.handler.logging.LoggingHandler logMessageINFO: [id: 0x3b9c9ed6,
/0:0:0:0:0:0:0:0:5685] RECEIVED: [id: 0x91650e0c, /127.0.0.1:59589 =>
/127.0.0.1:5685]Mar 30, 2016 11:21:35 AM
io.netty.handler.logging.LoggingHandler logMessageINFO: [id: 0x3b9c9ed6,
/0:0:0:0:0:0:0:0:5685] RECEIVED: [id: 0x65adc865, /127.0.0.1:59591 =>
/127.0.0.1:5685]Mar 30, 2016 11:21:35 AM
io.netty.handler.logging.LoggingHandler logMessageINFO: [id: 0x3b9c9ed6,
/0:0:0:0:0:0:0:0:5685] RECEIVED: [id: 0x43c82467, /127.0.0.1:59593 =>
/127.0.0.1:5685]
----------------------------------------
java -jar target/CloudAccount-0.0.1-SNAPSHOT.jar -----Account
SERVER-----11:19:08:105 [E] [AccountServer.java, AccountServer.main(), line:45]
coap server port requiredzhaoyan at
CHIP-ThinkPad-SL410:~/iotivity-1.1-rel/cloud/account$ java -jar
target/CloudAccount-0.0.1-SNAPSHOT.jar 5684-----Account SERVER-----Mar 30, 2016
11:19:13 AM io.netty.handler.logging.LoggingHandler channelRegisteredINFO: [id:
0x4ea840ae] REGISTEREDMar 30, 2016 11:19:13 AM
io.netty.handler.logging.LoggingHandler bindINFO: [id: 0x4ea840ae]
BIND(0.0.0.0/0.0.0.0:5684)Mar 30, 2016 11:19:13 AM
io.netty.handler.logging.LoggingHandler channelActiveINFO: [id: 0x4ea840ae,
/0:0:0:0:0:0:0:0:5684] ACTIVEpress 'q' to terminate11:19:13:437 [D] Connection
status of TCP CoAP SERVER : trueMar 30, 2016 11:19:33 AM
io.netty.handler.logging.LoggingHandler logMessageINFO: [id: 0x4ea840ae,
/0:0:0:0:0:0:0:0:5684] RECEIVED: [id: 0xc56e04ee, /127.0.0.1:56676 =>
/127.0.0.1:5684]Mar 30, 2016 11:21:35 AM
io.netty.handler.logging.LoggingHandler logMessageINFO: [id: 0x4ea840ae,
/0:0:0:0:0:0:0:0:5684] RECEIVED: [id: 0xa6c0c15e, /127.0.0.1:56680 =>
/127.0.0.1:5684]
----------------------------------------
java -jar target/CloudInterface-0.0.1-SNAPSHOT.jar 5683 127.0.0.1 5684
127.0.0.1 5685-----CI SERVER-------11:21:35:663 [D] Connection status of TCP
CoAP CLIENT : true11:21:35:670 [D] Connection status of TCP CoAP CLIENT :
true11:21:35:671 [D] Connection status of TCP CoAP CLIENT : trueMar 30, 2016
11:21:35 AM io.netty.handler.logging.LoggingHandler channelRegisteredINFO: [id:
0x2cab54cb] REGISTEREDMar 30, 2016 11:21:35 AM
io.netty.handler.logging.LoggingHandler bindINFO: [id: 0x2cab54cb]
BIND(0.0.0.0/0.0.0.0:5683)Mar 30, 2016 11:21:35 AM
io.netty.handler.logging.LoggingHandler channelActiveINFO: [id: 0x2cab54cb,
/0:0:0:0:0:0:0:0:5683] ACTIVE11:21:35:707 [D] Connection status of TCP CoAP
SERVER : truepress 'q' to terminate----------------------------------------
Regards,
Xiaoyan
Date: Wed, 30 Mar 2016 03:41:42 +0000
From: [email protected]
Subject: Re: RE: [dev] Iotivity Cloud sample client is above at wating response
!
To: xiaoyanit at outlook.com; iotivity-dev at lists.iotivity.org; jihyeok13.kim
at samsung.com
Hi, Xiaoyan
Please submit logs of CI and AccountServer.
it let us help to find the reason of your issue.
BR,
Glen kim.
------- Original Message -------
Sender : itxiaoyan<xiaoyanit at outlook.com>
Date : 2016-03-30 12:28 (GMT+09:00)
Title : RE: [dev] Iotivity Cloud sample client is above at wating response !
Hello guys,
I study about how to import certificates into Java security and it's
exits at cacerts with alias "github","*.github" . It's seem done ! But Cloud
sample client till above at "waiting response ..." ,what's
wrong with the connection between sample client -----> github OAuth server ?
Someone will response and help me solve this problem ,Thank your !
Regards,
Xiaoyan
From: [email protected]
To: glen.kim at samsung.com; iotivity-dev at lists.iotivity.org; jihyeok13.kim
at samsung.com
Date: Tue, 29 Mar 2016 14:30:22 +0000
Subject: Re: [dev] Iotivity Cloud sample client is above at wating response !
Hi,Glen kim
Thanks for your hard work! I await to hear your good news .
Regards,
Xiaoyan
Date: Tue, 29 Mar 2016 13:20:52 +0000
From: [email protected]
Subject: Re: RE: [dev] Iotivity Cloud sample client is above at wating response
!
To: xiaoyanit at outlook.com; iotivity-dev at lists.iotivity.org; jihyeok13.kim
at samsung.com
Hi, Xiaoyan
I think many developers will face this problem.
So, i feel the detail manual is needed to install certificates.
I'll write the manual as soon as possible.
Please give me time.
BR.
Glen kim.
---?? ???---
??? : itxiaoyan/xiaoyanit at outlook.com
???? : 2016/03/29 20:01 (GMT+09:00)
?? : RE: [dev] Iotivity Cloud sample client is above at wating response !
Dear Glen kim,
I check my build steps , and I found missed install account
ceritificate .
But I can't unstand [1][2][3] how to install github certificates . You means
got certificate after accessing www.github.com(root domain) *.github.com in
browser .
So , I list my work flow :
1.Access github and login use my account .
2.copy the request URL
:https://github.com/login?return_to=%2Flogin%2Foauth%2Fauthorize%3Fclient_id%3Dea9c18f540323b0213d0%26redirect_uri%3Dhttp%253A%252F%252Fwww.example.com%252Foauth_callback%252F
3. Authorized applications (IoTivityCloud)
4. browser will redirect to
http://www.example.com/oauth_callback/?code=xxxxxxxxxxxx
5.excute ./cloud_device ,set auth provider== "github"; set oAuth code ==
"xxxxxxxxxxxx"
6.cloud_device will block .
-----------------------
Put auth provider name(ex: github)
github
Put auth code(provided by auth provider)
bf9beb5db17ea476fa46
Host coap+tcp://s
authProvider github
authCode bf9beb5db17ea476fa46
Register account to cloud using github xxxxxxxxxxxx
OCCloudRegisterLogin return 0
Waiting response..
-----------------------
I excuted command on Linux environment?
"%JAVA_HOME%\jre\lib\security\cacerts "
--------------------
sudo /usr/lib/jvm/default-java/jre/lib/security/cacerts
sudo: /usr/lib/jvm/default-java/jre/lib/security/cacerts: command not found
--------------------
[1] - Install Github certificates for github.com and *.github.com.
[2] - You can get "github.com" certificate after accessing www.github.com in
your browser.[3] - You can get "*.github.com" certificate after accessing
api.github.com in your browser.
[4] - keysotre path : %JAVA_HOME%\jre\lib\security\cacerts (check your path you
use to compile)
BR,
Xiaoyan
From: iotivity-dev-bounces at lists.iotivity.org
[mailto:[email protected]] On Behalf Of ???
Sent: Tuesday, March 29, 2016 4:50 PM
To: xiaoyan it <xiaoyanit at outlook.com>; Iotivity dev <iotivity-dev at
lists.iotivity.org>; ??? <jihyeok13.kim at samsung.com>
Subject: Re: [dev] Iotivity Cloud sample client is above at wating response !
Hi, Xiaoyan
Please refer README file in ~/iotivity/cloud/account/
You need to install two certificates for github in your keystore file.
(github.com and *.github.com)
Or, one root certificate.
- You can get "github.com" certificate after accessing www.github.com in your
browser.
- You can get "*.github.com" certificate after accessing api.github.com in your
browser.
- keysotre path : %JAVA_HOME%\jre\lib\security\cacerts (check your path you use
to compile)
BR,
Glen kim.
------- Original Message -------
Sender : xiaoyan it<xiaoyanit at outlook.com>
Date : 2016-03-29 17:26 (GMT+09:00)
Title : RE: [dev] Iotivity Cloud sample client is above at wating response !
Hi Glen kim,
Thanks for your tips ! I didn't install github cerfificate with my testing
environment .
Does the sample client will use the certificate ? Anyway I will fllow your
advise first !
I will feedback soon .
Regards,
Xiaoyan.
Date: Tue, 29 Mar 2016 08:06:56 +0000
From: [email protected]
Subject: Re: [dev] Iotivity Cloud sample client is above at wating response !
To: xiaoyanit at outlook.com; iotivity-dev at lists.iotivity.org; jihyeok13.kim
at samsung.comHi Xiaoayan,
It works well with github account in my environment.
Did you install certificate of github in your desktop? if then, you need to
install it.
Otherwise, please submit logs of accout server to check your issue.
BR,
Glen kim.
------- Original Message -------
Sender : xiaoyan it<xiaoyanit at outlook.com>
Date : 2016-03-29 16:49 (GMT+09:00)
Title : [dev] Iotivity Cloud sample client is above at wating response !
Hello guys,
I build 1.1rel source code and run the
cloud/sample/client/sample_device with CI Server on single computer . Account
Server and RD Server is runing normal .
Question : I put auth provider name is "github" ,then use my oauth code
genger by my github account .Why it's block here , is ther any mistake I have ?
-----------------------
Host coap+tcp://s
authProvider github
authCode xxxxxxxxxxxxxxxxxx
Register account to cloud using github xxxxxxxxxxxxxxxxxx
OCCloudRegisterLogin return 0
Waiting response..
-----------------------
Thanks !
Xiaoayan
--------------------------------
Glen Young-Jin Kim
IoT Lab | Software Platform Team | Software Center
SAMSUNG ELECTRONICS CO., LTD.
010-3356-9627
glen.kim at samsung.com
--------------------------------
Glen Young-Jin Kim
IoT Lab | Software Platform Team | Software Center
SAMSUNG ELECTRONICS CO., LTD.
010-3356-9627
glen.kim at samsung.com
_______________________________________________ iotivity-dev mailing list
iotivity-dev at lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev
--------------------------------
Glen Young-Jin Kim
IoT Lab | Software Platform Team | Software Center
SAMSUNG ELECTRONICS CO., LTD.
010-3356-9627
glen.kim at samsung.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160330/3166c474/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 201603301241961_BGFC2LL5.gif
Type: image/gif
Size: 13168 bytes
Desc: not available
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160330/3166c474/attachment.gif>