Re: [Dev] Issue when running UUFMicroservice on top of IBM JDK 8

2017-02-21 Thread SajithAR Ariyarathna
According to [2] (see "Oracle content" section) IBM JDK 8 has Nashorn in
it. So, UUF should work in IBM JDK :).

Regarding your issue, According to the error log in [1] it seems like a CNF
problem. Log says the it cannot find "java.lang.Class$Atomic" class. CNF
exception is thrown from the static block in
org.wso2.msf4j.util.RuntimeAnnotations class [3] where
"java.lang.Class$Atomic" class is loaded using Class.forName() method.

@ThusithaD, is there a workaround or a solution for this?

[2] https://www-01.ibm.com/support/docview.wss?uid=swg21696670
[3]
https://github.com/wso2/msf4j/blob/v2.1.0/core/src/main/java/org/wso2/msf4j/util/RuntimeAnnotations.java#L54

Thanks.

On Wed, Feb 22, 2017 at 12:39 PM, Denuwanthi De Silva 
wrote:

> Hi,
>
> When starting the IS 6.0.0 pack on top of IBM JDK 8 latest version we get
> the error reported at [1].
> The other microservices in the pack are added without an issue. I also
> tested a micro service sample and it works fine on ibm jdk.
> But when come to org.wso2.carbon.uuf.httpconnector.msf4j.UUFMicroservice
> it throws the reported error.
> After that cannot visit the User portal app as well.
>
> Are we supporting IBM jsk 8 for uuf? Any insight on this will be helpful.
>
>
>
> [1][https://wso2.org/jira/browse/IDENTITY-5762]
>
>
> Thanks,
> --
> Denuwanthi De Silva
> Senior Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>



-- 
Sajith Janaprasad Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue when running UUFMicroservice on top of IBM JDK 8

2017-02-21 Thread Denuwanthi De Silva
Hi,

When starting the IS 6.0.0 pack on top of IBM JDK 8 latest version we get
the error reported at [1].
The other microservices in the pack are added without an issue. I also
tested a micro service sample and it works fine on ibm jdk.
But when come to org.wso2.carbon.uuf.httpconnector.msf4j.UUFMicroservice it
throws the reported error.
After that cannot visit the User portal app as well.

Are we supporting IBM jsk 8 for uuf? Any insight on this will be helpful.



[1][https://wso2.org/jira/browse/IDENTITY-5762]


Thanks,
-- 
Denuwanthi De Silva
Senior Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
Blog: https://denuwanthi.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] GSoC 2017 Proposal 18 - CLI Tool for WSO2 Identity Server

2017-02-21 Thread Anuradha Gunasinghe
Hi All,

I am a second year student in IIT (full time). So I went through the
proposals in GSOC 2017 and interesting about the $subject.
I have already went through the WSO2 Identity Server documentation and try
out the IS 5.3.0 version. I am not clear that much, which API that we are
going to expose through the CLI tool for now.
I followed the Golang and it seems it is interesting and changeling to
start from the scratch to get this done. I would like to jump to this
project and contribute as much as possible to the WSO2 since it is
OpenSource and Sri Lankan company.

thanks

*Anuradha Gunasinghe.*

| Informatics Institute of Technology | 57 | Ramakrishna Road | Colombo 06
| Sri Lanka |

| M: +94-711-363-830 |

| anuradha.2014...@iit.ac.lk | www.iit.ac.lk |
[image: Description: Description: Description: iit_LOGO].
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IOTS] SSLHandshakeException while Configuring IOS

2017-02-21 Thread Madhawa Perera
Hi Madawa,

Did you try installing P2-repo first? Try installing the p2-repo first and
then run the configurator.

Thank you
Best Regards,
Madhawa

On Tue, Feb 21, 2017 at 10:21 PM, Rasika Perera  wrote:

> Can you turn on SSL debug logs and share with us.[1]
>
> [1] http://blog.facilelogin.com/2010/11/debugging-ssl-
> connections-part-i.html
>
> On Tue, Feb 21, 2017 at 9:34 PM, Madawa Soysa  wrote:
>
>> Hi Rasika,
>>
>> I haven't changed the WIFI connection and the configured IP address has
>> not been changed.
>>
>> On Tue, Feb 21, 2017 at 9:28 PM, Rasika Perera  wrote:
>>
>>> Hi Madhawa,
>>>
>>> Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.
 CertificateException: No subject alternative names present
>>>
>>> As per the SO [1]; This occurs when the certificate IP is different than
>>> the client IP. After certificate generation; If you are connected to a
>>> different WiFi network, your IP will be changed. Thus, need to re-configure
>>> the certificates.
>>>
>>> [1] http://stackoverflow.com/questions/22505312/certificatee
>>> xception-no-subject-alternative-names-present
>>>
>>> On Tue, Feb 21, 2017 at 7:09 PM, Madawa Soysa  wrote:
>>>
 Hi All,

 I am trying to configure IOT Server (3.1.0) for IOS by following the
 documentation [1]. After doing the configuration changes and generating
 certificates using the ios-configurator tool, following exception is thrown
 continuously after few seconds of the server startup. Has anyone observed
 this error previously or have any insights about a possible cause?

 [IoT-Core] ERROR - APIPublisherStartupHandler failed to publish api.
 org.wso2.carbon.apimgt.webapp.publisher.exception.APIManagerPublisherException:
 feign.RetryableException: java.security.cert.CertificateException: No
 subject alternative names present executing POST
 https://10.100.7.57:9443/client-registration/v0.11/register
 at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceI
 mpl.publishAPI(APIPublisherServiceImpl.java:76)
 at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupH
 andler.publishAPIs(APIPublisherStartupHandler.java:97)
 at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupH
 andler.access$500(APIPublisherStartupHandler.java:30)
 at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupH
 andler$1.run(APIPublisherStartupHandler.java:69)
 at java.lang.Thread.run(Thread.java:745)
 Caused by: feign.RetryableException: 
 java.security.cert.CertificateException:
 No subject alternative names present executing POST
 https://10.100.7.57:9443/client-registration/v0.11/register
 at feign.FeignException.errorExecuting(FeignException.java:67)
 at feign.SynchronousMethodHandler.executeAndDecode(SynchronousM
 ethodHandler.java:104)
 at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandl
 er.java:76)
 at feign.ReflectiveFeign$FeignInvocationHandler.invoke(Reflecti
 veFeign.java:103)
 at com.sun.proxy.$Proxy25.register(Unknown Source)
 at org.wso2.carbon.apimgt.integration.client.OAuthRequestInterc
 eptor.apply(OAuthRequestInterceptor.java:79)
 at feign.SynchronousMethodHandler.targetRequest(SynchronousMeth
 odHandler.java:158)
 at feign.SynchronousMethodHandler.executeAndDecode(SynchronousM
 ethodHandler.java:88)
 at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandl
 er.java:76)
 at feign.ReflectiveFeign$FeignInvocationHandler.invoke(Reflecti
 veFeign.java:103)
 at com.sun.proxy.$Proxy38.apisGet(Unknown Source)
 at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceI
 mpl.publishAPI(APIPublisherServiceImpl.java:54)
 ... 4 more
 Caused by: javax.net.ssl.SSLHandshakeException:
 java.security.cert.CertificateException: No subject alternative names
 present
 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
 at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937
 )
 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
 at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa
 ndshaker.java:1478)
 at sun.security.ssl.ClientHandshaker.processMessage(ClientHands
 haker.java:212)
 at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
 at sun.security.ssl.Handshaker.process_record(Handshaker.java:9
 14)
 at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java
 :1050)
 at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo
 cketImpl.java:1363)
   

Re: [Dev] GSoC 2017 Proposal 15: APIM Design new REST API for Analytics

2017-02-21 Thread Rukshan Premathunga
Hi Sameera,

Thanks for interest towards the project. The idea of the project is to
design a new REST API for next C5 based APIM product. REST API should be
design to accept user requests and return JSON response. REST API
implementation should be able to retrieve data from the RDBMS (All the DBs
APIM support). APIM latest release 2.1.0 have statistics dashboard in
admin-portal/publisher/store apps. But those are implemented using jaggery
API. For next release we need to implement such a REST API using WSO2 MSF4J
which is also have the capability to extend.

In order to get an idea about APIM analytics, be familiar with APIM use
cases and Analytics. For that please refer APIM Documentation[1] and
Analytics Documentation[2]. Also be familiar with REST APIs and MSF4J.

Also to be familiar with APIM code please refer these repos [4][5].

[1] https://docs.wso2.com/display/AM210/WSO2+API+Manager+Documentation
[2] https://docs.wso2.com/display/AM210/Configuring+APIM+Analytics
[3] http://wso2.com/products/microservices-framework-for-java/
[4] https://github.com/wso2/carbon-apimgt/tree/C5
[5] https://github.com/wso2/product-apim/tree/C5

Thanks and Regards.


On Wed, Feb 22, 2017 at 12:14 AM, Nuwan Dias  wrote:

> [Adding Rukshan]
>
> On Tue, Feb 21, 2017 at 10:22 AM, Sameera Wickramasekara <
> itssamw...@gmail.com> wrote:
>
>> Hi All,
>>
>> I'm Sameera Wickramasekara, a final year undergraduate at University of
>> Moratuwa . I'm experienced with Java, Android and JavaScript frameworks
>> .I'm Interested in the Project for designing new REST API for APIM . I have
>> experience with developing REST APIs with java and Node.js from my academic
>> projects and my internship experiences.I believe i can contribute to this
>> project through my skills. as my fist steps i am reading the documentation
>> of APIM and downloading it to get familiar with the concepts. I highly
>> appreciate if you could guide me how should i proceed from here.
>>
>> Thank you & Regards,
>> Sameera Wickramasekara
>>
>>
>> .
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Dias
>
> Software Architect - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729 <+94%2077%20777%205729>
>



-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 Proposal 15: APIM Design new REST API for Analytics

2017-02-21 Thread Nuwan Dias
[Adding Rukshan]

On Tue, Feb 21, 2017 at 10:22 AM, Sameera Wickramasekara <
itssamw...@gmail.com> wrote:

> Hi All,
>
> I'm Sameera Wickramasekara, a final year undergraduate at University of
> Moratuwa . I'm experienced with Java, Android and JavaScript frameworks
> .I'm Interested in the Project for designing new REST API for APIM . I have
> experience with developing REST APIs with java and Node.js from my academic
> projects and my internship experiences.I believe i can contribute to this
> project through my skills. as my fist steps i am reading the documentation
> of APIM and downloading it to get familiar with the concepts. I highly
> appreciate if you could guide me how should i proceed from here.
>
> Thank you & Regards,
> Sameera Wickramasekara
>
>
> .
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Dias

Software Architect - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] GSoC 2017 Proposal 15: APIM Design new REST API for Analytics

2017-02-21 Thread Sameera Wickramasekara
Hi All,

I'm Sameera Wickramasekara, a final year undergraduate at University of
Moratuwa . I'm experienced with Java, Android and JavaScript frameworks
.I'm Interested in the Project for designing new REST API for APIM . I have
experience with developing REST APIs with java and Node.js from my academic
projects and my internship experiences.I believe i can contribute to this
project through my skills. as my fist steps i am reading the documentation
of APIM and downloading it to get familiar with the concepts. I highly
appreciate if you could guide me how should i proceed from here.

Thank you & Regards,
Sameera Wickramasekara


.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Mandatory Claims in OAuth 2.0 with Identity Server 5.3.0

2017-02-21 Thread Dinuksha Ishwari
Hi Nuwandi,

Thank you for the instructions. Got it resolved. I have written a blog post
about this as well. (http://dinukshaish.blogspot.
com/2017/02/mandatory-claims-in-oauth-20-with.html).

Thanks and regards,
Dinuksha

On Mon, Feb 20, 2017 at 9:47 AM, Nuwandi Wickramasinghe 
wrote:

> Hi Dinusha,
>
> This could happen because these two local claims 
> (*http://wso2.org/claims/organization
> * and *http://wso2.org/claims/givenname
> *) are not mapped  in oidc claim
> dialect. To get rid of this issue, please try the following.
>
> 1. Go to *List* under *Claims* in IS Management Console *Main* tab.
> 2. Click on *http://wso2.org/oidc/claim *
> 3. Click Edit on *given_name *and pick *http://wso2.org/claims/givenname
> * from *Mapped Local Claim *drop down.
> 4. Update claim.
> 5. Add new claim with the name *Organization *in oidc claim dialect and
> map it to *http://wso2.org/claims/organization
> .* (Check "Add External Claim" in [1]
> )
>
> After the claim mapping is done, mandatory claims should be picked
> correctly from the local profile.
>
> [1] https://docs.wso2.com/display/IS530/Adding+Claim+Mapping
>
> regards
> Nuwandi
>
>
> On Mon, Feb 20, 2017 at 8:23 AM, Dinuksha Ishwari <
> dinuksha.ishw...@gmail.com> wrote:
>
>> Hi Devs,
>>
>> I have set up IS 5.3.0 and tried out the OAuth 2.0 authorization code
>> grant type with Playground2 sample.
>>
>> In the Service Provider’s claim configuration, I added couple of claims
>> (local claim dialect) and marked all of them as ‘mandatory’.
>>
>>
>> In the user profile, I have added values for all of these claims which
>> were defined in SP’s claim config.
>>
>>
>> When I try out the authorization code grant type with Playground2 sample,
>> after the authentication step I see the following where it says the user’s
>> profile is missing the two claims ‘Organization’ and ‘GivenName’.
>>
>>
>> But these claims are already set in user’s profile. Once I fill the
>> claims, the flow works as expected and I’m able to receive the user’s
>> requested claims.
>>
>> Any thoughts why it says these claims are missing in the profile although
>> I have set those claims in the user profile already ?
>>
>>
>> Thank you,
>> Dinuksha.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Best Regards,
>
> Nuwandi Wickramasinghe
>
> Software Engineer
>
> WSO2 Inc.
>
> Web : http://wso2.com
>
> Mobile : 0719214873
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 - Proposal 20: [IS] OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-02-21 Thread Omindu Rathnaweera
Adding project mentors.

On Mon, Feb 20, 2017 at 4:45 PM, Dinuksha Ishwari <
dinuksha.ishw...@gmail.com> wrote:

> Hi All,
>
>
> I am Dinuksha Kanda Samanage, a 3rd year undergraduate from Sri Lanka
> Institute of Information Technology, following the Software Engineering
> specialization.
>
>
> This is to convey my interest in implementing the OAuth 2.0 Dynamic
> Client Registration Management Protocol Support for Identity Server
> (Proposal 20) in GSoC 2017.
>
>
> I am well versed in Java and also familiar with Maven and Git. I have been
> involved in implementing an OAuth 2.0 and OpenID Connect related project
> for almost 7 months during my internship.
>
>
> I have already started to get familiar with WSO2 codebase and fixed the
> JIRA [1] where the pull request is already merged to the WSO2 codebase. I
> will continue fixing more open JIRA tickets on Identity Server. (If you can
> suggest some, that would be great too)
>
>
> In order to get ready for this project, I already setup OAuth 2.0
> Playground2 sample with Identity Server 5.3.0 and wrote the blog post [2]
> for sharing my experience. When running this flow, I faced an issue and
> raised it in the Dev mail [3] and have got the answer now.
>
>
> My GitHub profile can be found at [4].
>
>
> Therefore I believe I can learn the required concepts/technologies and
> implement this project for GSoC 2017.
>
>
> I appreciate if you can guide me on proceeding further with the project.
>
>
> [1] https://wso2.org/jira/browse/IDENTITY-5241
>
> [2] http://dinukshaish.blogspot.com/2017/02/getting-started-
> with-oauth-20-using.html
>
> [3] [Dev] Mandatory Claims in OAuth 2.0 with Identity Server 5.3.0
>
> [4] https://github.com/dinuish94
>
>
> Best Regards,
>
> Dinuksha
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Omindu Rathnaweera
Software Engineer, WSO2 Inc.
Mobile: +94 771 197 211
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IOTS] SSLHandshakeException while Configuring IOS

2017-02-21 Thread Rasika Perera
Can you turn on SSL debug logs and share with us.[1]

[1]
http://blog.facilelogin.com/2010/11/debugging-ssl-connections-part-i.html

On Tue, Feb 21, 2017 at 9:34 PM, Madawa Soysa  wrote:

> Hi Rasika,
>
> I haven't changed the WIFI connection and the configured IP address has
> not been changed.
>
> On Tue, Feb 21, 2017 at 9:28 PM, Rasika Perera  wrote:
>
>> Hi Madhawa,
>>
>> Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.
>>> CertificateException: No subject alternative names present
>>
>> As per the SO [1]; This occurs when the certificate IP is different than
>> the client IP. After certificate generation; If you are connected to a
>> different WiFi network, your IP will be changed. Thus, need to re-configure
>> the certificates.
>>
>> [1] http://stackoverflow.com/questions/22505312/certificatee
>> xception-no-subject-alternative-names-present
>>
>> On Tue, Feb 21, 2017 at 7:09 PM, Madawa Soysa  wrote:
>>
>>> Hi All,
>>>
>>> I am trying to configure IOT Server (3.1.0) for IOS by following the
>>> documentation [1]. After doing the configuration changes and generating
>>> certificates using the ios-configurator tool, following exception is thrown
>>> continuously after few seconds of the server startup. Has anyone observed
>>> this error previously or have any insights about a possible cause?
>>>
>>> [IoT-Core] ERROR - APIPublisherStartupHandler failed to publish api.
>>> org.wso2.carbon.apimgt.webapp.publisher.exception.APIManagerPublisherException:
>>> feign.RetryableException: java.security.cert.CertificateException: No
>>> subject alternative names present executing POST
>>> https://10.100.7.57:9443/client-registration/v0.11/register
>>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceI
>>> mpl.publishAPI(APIPublisherServiceImpl.java:76)
>>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupH
>>> andler.publishAPIs(APIPublisherStartupHandler.java:97)
>>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupH
>>> andler.access$500(APIPublisherStartupHandler.java:30)
>>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupH
>>> andler$1.run(APIPublisherStartupHandler.java:69)
>>> at java.lang.Thread.run(Thread.java:745)
>>> Caused by: feign.RetryableException: 
>>> java.security.cert.CertificateException:
>>> No subject alternative names present executing POST
>>> https://10.100.7.57:9443/client-registration/v0.11/register
>>> at feign.FeignException.errorExecuting(FeignException.java:67)
>>> at feign.SynchronousMethodHandler.executeAndDecode(SynchronousM
>>> ethodHandler.java:104)
>>> at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandl
>>> er.java:76)
>>> at feign.ReflectiveFeign$FeignInvocationHandler.invoke(Reflecti
>>> veFeign.java:103)
>>> at com.sun.proxy.$Proxy25.register(Unknown Source)
>>> at org.wso2.carbon.apimgt.integration.client.OAuthRequestInterc
>>> eptor.apply(OAuthRequestInterceptor.java:79)
>>> at feign.SynchronousMethodHandler.targetRequest(SynchronousMeth
>>> odHandler.java:158)
>>> at feign.SynchronousMethodHandler.executeAndDecode(SynchronousM
>>> ethodHandler.java:88)
>>> at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandl
>>> er.java:76)
>>> at feign.ReflectiveFeign$FeignInvocationHandler.invoke(Reflecti
>>> veFeign.java:103)
>>> at com.sun.proxy.$Proxy38.apisGet(Unknown Source)
>>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceI
>>> mpl.publishAPI(APIPublisherServiceImpl.java:54)
>>> ... 4 more
>>> Caused by: javax.net.ssl.SSLHandshakeException:
>>> java.security.cert.CertificateException: No subject alternative names
>>> present
>>> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>>> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
>>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
>>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
>>> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa
>>> ndshaker.java:1478)
>>> at sun.security.ssl.ClientHandshaker.processMessage(ClientHands
>>> haker.java:212)
>>> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
>>> at sun.security.ssl.Handshaker.process_record(Handshaker.java:9
>>> 14)
>>> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java
>>> :1050)
>>> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo
>>> cketImpl.java:1363)
>>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.
>>> java:1391)
>>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.
>>> java:1375)
>>> at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsCli
>>> ent.java:563)
>>> at 

Re: [Dev] [IOTS] SSLHandshakeException while Configuring IOS

2017-02-21 Thread Madawa Soysa
Hi Rasika,

I haven't changed the WIFI connection and the configured IP address has not
been changed.

On Tue, Feb 21, 2017 at 9:28 PM, Rasika Perera  wrote:

> Hi Madhawa,
>
> Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.
>> CertificateException: No subject alternative names present
>
> As per the SO [1]; This occurs when the certificate IP is different than
> the client IP. After certificate generation; If you are connected to a
> different WiFi network, your IP will be changed. Thus, need to re-configure
> the certificates.
>
> [1] http://stackoverflow.com/questions/22505312/certificateexception-no-
> subject-alternative-names-present
>
> On Tue, Feb 21, 2017 at 7:09 PM, Madawa Soysa  wrote:
>
>> Hi All,
>>
>> I am trying to configure IOT Server (3.1.0) for IOS by following the
>> documentation [1]. After doing the configuration changes and generating
>> certificates using the ios-configurator tool, following exception is thrown
>> continuously after few seconds of the server startup. Has anyone observed
>> this error previously or have any insights about a possible cause?
>>
>> [IoT-Core] ERROR - APIPublisherStartupHandler failed to publish api.
>> org.wso2.carbon.apimgt.webapp.publisher.exception.APIManagerPublisherException:
>> feign.RetryableException: java.security.cert.CertificateException: No
>> subject alternative names present executing POST
>> https://10.100.7.57:9443/client-registration/v0.11/register
>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceI
>> mpl.publishAPI(APIPublisherServiceImpl.java:76)
>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupH
>> andler.publishAPIs(APIPublisherStartupHandler.java:97)
>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupH
>> andler.access$500(APIPublisherStartupHandler.java:30)
>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupH
>> andler$1.run(APIPublisherStartupHandler.java:69)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: feign.RetryableException: java.security.cert.CertificateException:
>> No subject alternative names present executing POST
>> https://10.100.7.57:9443/client-registration/v0.11/register
>> at feign.FeignException.errorExecuting(FeignException.java:67)
>> at feign.SynchronousMethodHandler.executeAndDecode(SynchronousM
>> ethodHandler.java:104)
>> at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandl
>> er.java:76)
>> at feign.ReflectiveFeign$FeignInvocationHandler.invoke(Reflecti
>> veFeign.java:103)
>> at com.sun.proxy.$Proxy25.register(Unknown Source)
>> at org.wso2.carbon.apimgt.integration.client.OAuthRequestInterc
>> eptor.apply(OAuthRequestInterceptor.java:79)
>> at feign.SynchronousMethodHandler.targetRequest(SynchronousMeth
>> odHandler.java:158)
>> at feign.SynchronousMethodHandler.executeAndDecode(SynchronousM
>> ethodHandler.java:88)
>> at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandl
>> er.java:76)
>> at feign.ReflectiveFeign$FeignInvocationHandler.invoke(Reflecti
>> veFeign.java:103)
>> at com.sun.proxy.$Proxy38.apisGet(Unknown Source)
>> at org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceI
>> mpl.publishAPI(APIPublisherServiceImpl.java:54)
>> ... 4 more
>> Caused by: javax.net.ssl.SSLHandshakeException:
>> java.security.cert.CertificateException: No subject alternative names
>> present
>> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
>> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa
>> ndshaker.java:1478)
>> at sun.security.ssl.ClientHandshaker.processMessage(ClientHands
>> haker.java:212)
>> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
>> at sun.security.ssl.Handshaker.process_record(Handshaker.java:
>> 914)
>> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.
>> java:1050)
>> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo
>> cketImpl.java:1363)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.
>> java:1391)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.
>> java:1375)
>> at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsCli
>> ent.java:563)
>> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnectio
>> n.connect(AbstractDelegateHttpsURLConnection.java:185)
>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0
>> (HttpURLConnection.java:1282)
>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(
>> HttpURLConnection.java:1257)
>> at 

Re: [Dev] [IOTS] SSLHandshakeException while Configuring IOS

2017-02-21 Thread Rasika Perera
Hi Madhawa,

Caused by: javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException:
> No subject alternative names present

As per the SO [1]; This occurs when the certificate IP is different than
the client IP. After certificate generation; If you are connected to a
different WiFi network, your IP will be changed. Thus, need to re-configure
the certificates.

[1]
http://stackoverflow.com/questions/22505312/certificateexception-no-subject-alternative-names-present

On Tue, Feb 21, 2017 at 7:09 PM, Madawa Soysa  wrote:

> Hi All,
>
> I am trying to configure IOT Server (3.1.0) for IOS by following the
> documentation [1]. After doing the configuration changes and generating
> certificates using the ios-configurator tool, following exception is thrown
> continuously after few seconds of the server startup. Has anyone observed
> this error previously or have any insights about a possible cause?
>
> [IoT-Core] ERROR - APIPublisherStartupHandler failed to publish api.
> org.wso2.carbon.apimgt.webapp.publisher.exception.APIManagerPublisherException:
> feign.RetryableException: java.security.cert.CertificateException: No
> subject alternative names present executing POST https://10.100.7.57:9443/
> client-registration/v0.11/register
> at org.wso2.carbon.apimgt.webapp.publisher.
> APIPublisherServiceImpl.publishAPI(APIPublisherServiceImpl.java:76)
> at org.wso2.carbon.apimgt.webapp.publisher.
> APIPublisherStartupHandler.publishAPIs(APIPublisherStartupHandler.java:97)
> at org.wso2.carbon.apimgt.webapp.publisher.
> APIPublisherStartupHandler.access$500(APIPublisherStartupHandler.java:30)
> at org.wso2.carbon.apimgt.webapp.publisher.
> APIPublisherStartupHandler$1.run(APIPublisherStartupHandler.java:69)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: feign.RetryableException: java.security.cert.CertificateException:
> No subject alternative names present executing POST
> https://10.100.7.57:9443/client-registration/v0.11/register
> at feign.FeignException.errorExecuting(FeignException.java:67)
> at feign.SynchronousMethodHandler.executeAndDecode(
> SynchronousMethodHandler.java:104)
> at feign.SynchronousMethodHandler.invoke(
> SynchronousMethodHandler.java:76)
> at feign.ReflectiveFeign$FeignInvocationHandler.invoke(
> ReflectiveFeign.java:103)
> at com.sun.proxy.$Proxy25.register(Unknown Source)
> at org.wso2.carbon.apimgt.integration.client.
> OAuthRequestInterceptor.apply(OAuthRequestInterceptor.java:79)
> at feign.SynchronousMethodHandler.targetRequest(
> SynchronousMethodHandler.java:158)
> at feign.SynchronousMethodHandler.executeAndDecode(
> SynchronousMethodHandler.java:88)
> at feign.SynchronousMethodHandler.invoke(
> SynchronousMethodHandler.java:76)
> at feign.ReflectiveFeign$FeignInvocationHandler.invoke(
> ReflectiveFeign.java:103)
> at com.sun.proxy.$Proxy38.apisGet(Unknown Source)
> at org.wso2.carbon.apimgt.webapp.publisher.
> APIPublisherServiceImpl.publishAPI(APIPublisherServiceImpl.java:54)
> ... 4 more
> Caused by: javax.net.ssl.SSLHandshakeException: 
> java.security.cert.CertificateException:
> No subject alternative names present
> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
> at sun.security.ssl.ClientHandshaker.serverCertificate(
> ClientHandshaker.java:1478)
> at sun.security.ssl.ClientHandshaker.processMessage(
> ClientHandshaker.java:212)
> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
> at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
> at sun.security.ssl.SSLSocketImpl.readRecord(
> SSLSocketImpl.java:1050)
> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(
> SSLSocketImpl.java:1363)
> at sun.security.ssl.SSLSocketImpl.startHandshake(
> SSLSocketImpl.java:1391)
> at sun.security.ssl.SSLSocketImpl.startHandshake(
> SSLSocketImpl.java:1375)
> at sun.net.www.protocol.https.HttpsClient.afterConnect(
> HttpsClient.java:563)
> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnec
> tion.connect(AbstractDelegateHttpsURLConnection.java:185)
> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(
> HttpURLConnection.java:1282)
> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(
> HttpURLConnection.java:1257)
> at sun.net.www.protocol.https.HttpsURLConnectionImpl.
> getOutputStream(HttpsURLConnectionImpl.java:250)
> at feign.Client$Default.convertAndSend(Client.java:133)
> at feign.Client$Default.execute(Client.java:73)
> at feign.SynchronousMethodHandler.executeAndDecode(

Re: [Dev] GSOC Proposal 19 Account Chooser

2017-02-21 Thread Harsha Thirimanna
Hi Gayan,
I am adding this to the public dev group list and we can continue this on
here.

To get more details you can follow the references in proposal page and [1]

[1] https://sites.google.com/site/oidfacwg/home

*Harsha Thirimanna*
*Associate Tech Lead | WSO2*

Email: hars...@wso2.com
Mob: +94715186770 <+94%2071%20518%206770>
Blog: http://harshathirimanna.blogspot.com/
Twitter: http://twitter.com/harshathirimann
Linked-In: linked-in: http://www.linkedin.com/pub/
harsha-thirimanna/10/ab8/122


On Tue, Feb 14, 2017 at 2:16 AM, Prabath Siriwardena 
wrote:

> Hi Gayan,
>
> Great to see your interest on this...
>
> Yes - its similar to what Google has...
>
> The deliverable would be to implement Account Chooser support for WSO2
> Identity Sever. This would require some changes at the IS authentication
> framework...
>
> Thanks & regards,
> -Prabath
>
> On Mon, Feb 13, 2017 at 7:59 AM, Gayan Kavirathne <
> gayankavirathne...@cse.mrt.ac.lk> wrote:
>
>> Dear Prabath sir,
>>
>>
>> After going through the given description and the references, as i
>> understood this Account Chooser is something similar to  google account
>> chooser. (what we use to select our google account where we have signed in
>> with multiple ID's in the same device)
>>
>> But the deliverable are not quite clear. I sincerely love to work in this
>> project . It is very kind of you if you could help me to understand these
>> deliverable.
>>
>> Regards!
>>
>> Gayan Sandaruwan De Silva
>> Undergraduate,
>> Dept. Of CSE
>> University Of Moratuwa
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950 <(650)%20625-7950>
>
> http://facilelogin.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IOTS] SSLHandshakeException while Configuring IOS

2017-02-21 Thread Madawa Soysa
Hi All,

I am trying to configure IOT Server (3.1.0) for IOS by following the
documentation [1]. After doing the configuration changes and generating
certificates using the ios-configurator tool, following exception is thrown
continuously after few seconds of the server startup. Has anyone observed
this error previously or have any insights about a possible cause?

[IoT-Core] ERROR - APIPublisherStartupHandler failed to publish api.
org.wso2.carbon.apimgt.webapp.publisher.exception.APIManagerPublisherException:
feign.RetryableException: java.security.cert.CertificateException: No
subject alternative names present executing POST
https://10.100.7.57:9443/client-registration/v0.11/register
at
org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceImpl.publishAPI(APIPublisherServiceImpl.java:76)
at
org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupHandler.publishAPIs(APIPublisherStartupHandler.java:97)
at
org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupHandler.access$500(APIPublisherStartupHandler.java:30)
at
org.wso2.carbon.apimgt.webapp.publisher.APIPublisherStartupHandler$1.run(APIPublisherStartupHandler.java:69)
at java.lang.Thread.run(Thread.java:745)
Caused by: feign.RetryableException:
java.security.cert.CertificateException: No subject alternative names
present executing POST
https://10.100.7.57:9443/client-registration/v0.11/register
at feign.FeignException.errorExecuting(FeignException.java:67)
at
feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:104)
at
feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at
feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy25.register(Unknown Source)
at
org.wso2.carbon.apimgt.integration.client.OAuthRequestInterceptor.apply(OAuthRequestInterceptor.java:79)
at
feign.SynchronousMethodHandler.targetRequest(SynchronousMethodHandler.java:158)
at
feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:88)
at
feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at
feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy38.apisGet(Unknown Source)
at
org.wso2.carbon.apimgt.webapp.publisher.APIPublisherServiceImpl.publishAPI(APIPublisherServiceImpl.java:54)
... 4 more
Caused by: javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: No subject alternative names
present
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1478)
at
sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:212)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1050)
at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363)
at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1391)
at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1375)
at
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1282)
at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1257)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
at feign.Client$Default.convertAndSend(Client.java:133)
at feign.Client$Default.execute(Client.java:73)
at
feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:97)
... 14 more
Caused by: java.security.cert.CertificateException: No subject alternative
names present
at
sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:144)
at sun.security.util.HostnameChecker.match(HostnameChecker.java:93)
at
sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:455)
at
sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:436)
at
sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:200)
at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
at

Re: [Dev] Please review and merge the PR

2017-02-21 Thread Ashen Weerathunga
On Tue, Feb 21, 2017 at 6:03 PM, Ashen Weerathunga  wrote:

> Hi,
>
> Can you please review and merge the PR [1]. This is regarding the kernel
> update requested in this mail thread [2].
>
> [1] https://github.com/wso2/carbon-messaging/pull/57
> [2] [IS-6.0] Updating carbon-kernel version to 5.2.0-m3
>
> Thanks,
> Ashen
>
> --
> *Ashen Weerathunga*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> Email: as...@wso2.com
> Mobile: +94716042995 <94716042995>
> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
> *
> 
>



-- 
*Ashen Weerathunga*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

Email: as...@wso2.com
Mobile: +94716042995 <94716042995>
LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
*

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev