System key error when assigning identity manager to tenant

2018-08-09 Thread Courage Angeh
Hello,

Hope this message reaches you well.
I have separate the different microservices and they are running well. I am
currently running provisioner and identity on GKE. I have gone through the
process of creating application and tenants via provisioner endpoint.
Currently, I have initialized just one application, that is identity.
I am trying to set identity as the Identity Manager for a tenant with
identifier, `playground` but I get an error response:

*`The given identity instance didn't recognize the system token as valid.
Perhaps the system keys for the provisioner or for the identity manager are
misconfigured?`*

Here are the logs for provision, https://pastebin.com/QyXc4GHH, and
identity, https://pastebin.com/ermXJPBF

I did an update on provisioner to set RSA public and private keys. Here is
the link to changes made:
https://github.com/Anh3h/fineract-cn-identity/commit/ef969244af082573230a47cd6923a87d212e84a3


I debugged, and I realized the error comes when provisioner tried to
initialize with identity via an HTTP request But I still don't understand
why I get the error.

I will really appreciate some help.

Thanks,
Courage


Fwd: SMS Bridge Configuration on Fineract 1.1

2018-08-09 Thread Santosh Math
Solomon,

As discussed in chatting, this mail thread may help you.

-- Forwarded message --
From: Nazeer Hussain Shaik 
Date: Wed, Jul 18, 2018 at 10:44 AM
Subject: Re: SMS Bridge Configuration on Fineract 1.1
To: man...@bodhiproject.org
Cc: u...@fineract.apache.org, dev@fineract.apache.org, Brijesh Kumar <
docb...@bodhiproject.org>, pra...@bodhiproject.org, Ed Cable <
edca...@mifos.org>


Twilio and Infobip are already integrated. I believe you are talking about
setting up the environment.
We integrated these two, because they have more coverage than restricting
to a specific country.
If you find any provider with lesser charges, feel free to integrate them
with message-gateway. If you need any help let us know.

Regards,
Nazeer

On Tue, Jul 17, 2018 at 8:38 PM Mangal Kumar 
wrote:

> Hello Nazeer, Santosh,
>
> I am now integrating Infobip. With the success of Twilio integration and
> since Infobip is already incorporated as a provider, I feel this will be
> now very easy for us to do.
>
> However, you are aware that Twilio's pricing is very expensive for India
> ($0.01/SMS) whereas we are seeking to manage the price levels per SMS
basis
> at around $0.0022 (INR 0.15 per transactional SMS) for any MFI in India.
>
> It is imperative therefore to provide local solutions (local providers).
> Request to share if you have attempted one for India.
>
> With regards,
> Mangal
>
>
>
> On Tue, Jul 17, 2018 at 2:06 PM, Mangal Kumar 
> wrote:
>
>> Hi Santosh,
>>
>> No, I tried only with twilio. We are looking some indian sms gateway
>> integration with Message gateway. If you have any solution, please share.
>>
>> With regards,
>>
>> On Tue, Jul 17, 2018 at 11:56 AM, Santosh Math <
>> sant...@confluxtechnologies.com> wrote:
>>
>>> HI Mangal,
>>>
>>> Did you try with Infobip as well, another sms  service provider? It's
>>> pretty much similar like Twilio, I think.
>>>
>>> https://github.com/openMF/message-gateway
>>>
>>>
>>> On Mon, Jul 16, 2018 at 6:54 PM, Mangal Kumar 
>>> wrote:
>>>
 Thanks Nazeer,

 I will try to implement bulksmsgateway with Message Gateway. If you
 have step-wise notes regarding the implementation of new SMS provider,
it
 will help us.

 With Regards,

 Mangal


 On Mon, Jul 16, 2018 at 6:47 PM, Nazeer Hussain Shaik <
 nazeerhussain.sh...@gmail.com> wrote:

> Correction, I spoke to bulksmsgateway, they do have deliver status
> reports API.
>
> https://login.bulksmsgateway.in/delivery-reports-api.php?
username={userName}={password}=2018-05-29=2018-05-30
>
> Regards,
> Nazeer
>
> On Mon, Jul 16, 2018 at 6:31 PM Nazeer Hussain Shaik <
> nazeerhussain.sh...@gmail.com> wrote:
>
>> Please have a look at current Twilio implementation
>> https://github.com/openMF/message-gateway/tree/master/
src/main/java/org/fineract/messagegateway/sms/providers/impl/twilio
>> and SMSProviderFactory.
>> It is easy to implement. Your implementation should extend
>> SMSProvider. If it is still not clear, then let me know I will set
>> up a skype call (Mostly after 9PM IST).
>>
>> Note: I believe bulksmsgateway supports sending SMS. But doesn't
>> support delivery feedback. Please validate your requirements and
their
>> support before starting the implementation.
>>
>> Regards,
>> Nazeer
>>
>> On Mon, Jul 16, 2018 at 6:08 PM Mangal Kumar 
>> wrote:
>>
>>> Thanks Nazeer and Santosh.
>>>
>>> I am able to configure the SMS campaign and able to receive the SMS
>>> on my phone.
>>>
>>> Now, the next step to add the support of other third party SMS
>>> Provider (https://www.bulksmsgateway.in) like Twilio. Could you
>>> please explain? How to add the support of other third party SMS
provider
>>> with the Message Gateway?
>>>
>>> Regards,
>>> Mangal
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Jul 16, 2018 at 5:29 PM, Nazeer Hussain Shaik <
>>> nazeerhussain.sh...@gmail.com> wrote:
>>>
 Message gateway registers a call back API with Twilio while sending
 the SMS. The system on which message gateway is running, should
have a
 public IP. If it is private IP.
 Callback registration is required to get the status of SMS sent
 from message gateway. If you don't want tracking, then disable this
 registration by commenting code.

 Regards,
 Nazeer


 On Mon, Jul 16, 2018 at 4:24 PM Santosh Math <
 sant...@confluxtechnologies.com> wrote:

> Hi Mangal,
>
> Twilio is trying to call(I mean while send sms)  only valid IP
> address or
> valid domain name mapped to the IP address. Since,
> http://localhost:9191 is
> neither IP address ,nor domain name, it's throwing above error
> messsage.
> Could you try with system 

Re: Fineract CN Setup issues

2018-08-09 Thread Karthik Ananthakrishnan
Sure Issac

Get Outlook for iOS

From: Isaac Kamga 
Sent: Thursday, August 9, 2018 4:52:59 PM
To: Dev
Cc: Myrle Krantz
Subject: Re: Fineract CN Setup issues

Hi Karthik,

Given that you've fixed both issues, could you kindly send a PR to the
fims-web-app 
repository ?

I will be thrilled to review and merge.

You could also update the How To Build Fineract CN

page on Confluence with your learnings.

Cheers,
Isaac Kamga.


Re: Fineract CN Setup issues

2018-08-09 Thread Isaac Kamga
Hi Karthik,

Given that you've fixed both issues, could you kindly send a PR to the
fims-web-app 
repository ?

I will be thrilled to review and merge.

You could also update the How To Build Fineract CN

page on Confluence with your learnings.

Cheers,
Isaac Kamga.


RE: [Mifos-developer] Error in setting up Message gateway

2018-08-09 Thread innocent
Hi Sibusiso

 

I have tried to change my port number still failing to pick sms provider in 
dropdown 

See attached file 

 

Regards 

From: innoc...@taatconsulting.com  
Sent: 09 August 2018 09:45
To: 'Santosh Math' 
Cc: 'Dev' ; 'Mifos software development' 

Subject: Re: [Mifos-developer] Error in setting up Message gateway

 

Hi Santosh 

 

Attached is my External Service configuration for one of my tenant, I cant seem 
to find where am wrong 

 

Regards 

From: Santosh Math mailto:sant...@confluxtechnologies.com> > 
Sent: 09 August 2018 09:22
To: innoc...@taatconsulting.com  
Cc: Sifiso Mtetwa mailto:sif...@skyburgsystems.org> 
>; Mifos software development mailto:mifos-develo...@lists.sourceforge.net> >; Dev mailto:dev@fineract.apache.org> >
Subject: Re: [Mifos-developer] Error in setting up Message gateway

 

Hi Innocent,

 

Message gateway server is running. Looks like platform server is not able  to 
connect message gateway server because 'External Service is not configured'. 

 

By the way , your  platform server is running locally? 

 

 

 

On Thu, Aug 9, 2018 at 12:42 PM, mailto:innoc...@taatconsulting.com> > wrote:

Hi Santosh 

 

Please find attached screen short for message gateway server running 

 

e

 

Regards 

 

From: Santosh Math mailto:sant...@confluxtechnologies.com> > 
Sent: 08 August 2018 16:55
To: innoc...@taatconsulting.com  
Cc: Sifiso Mtetwa mailto:sif...@skyburgsystems.org> 
>; Mifos software development mailto:mifos-develo...@lists.sourceforge.net> >; Dev mailto:dev@fineract.apache.org> >


Subject: Re: [Mifos-developer] Error in setting up Message gateway

 

Please share the screenshot of the message gateway server running.

 

On Wed 8 Aug, 2018, 8:24 PM Santosh Math, mailto:sant...@confluxtechnologies.com> > wrote:

Hi Innocent, 

Are u sure message gateway server is running successfully?

 

On Wed 8 Aug, 2018, 6:53 PM , mailto:innoc...@taatconsulting.com> > wrote:

Hi Santosh 

 

I am having challenges with setting up message gateway on windows tomcat server.

When I try to create sms campaign am getting an error 

 

 field is required

error.msg.unable.to.connect.to.intermediate.server

 

also the drop down for sms provider is not pick data in the database

kindly Assist 

 

Regards 

 

Innocent Marozva 

 

 

From: sif...@skyburgsystems.org   
mailto:sif...@skyburgsystems.org> > 
Sent: 08 August 2018 09:17
To: 'Mifos software development' mailto:mifos-develo...@lists.sourceforge.net> >
Cc: innoc...@taatconsulting.com  
Subject: RE: [Mifos-developer] Error in setting up Message gateway

 

Hi Innocent,

 

Checked your url and it is not loading. Please check that your ip address and 
portal are the correct ones used to access your tenants.

 

Sifiso

 

From: innoc...@taatconsulting.com   
mailto:innoc...@taatconsulting.com> > 
Sent: Wednesday, August 8, 2018 9:08 AM
To: 'Mifos software development' mailto:mifos-develo...@lists.sourceforge.net> >
Subject: Re: [Mifos-developer] Error in setting up Message gateway

 

Hi @all 

 

Could you please clarify on setting message gateway, am also facing some 
challenges in trying to get key using REST ,

 

Using url 

 

My url: https://52.53.14.67:8445/tenants

Body content  : application/json; charset=UTF-8

Using POST method 

Body : {

"tenantId":"metcash",

"description": "SMS Campaign"

}

 

 

 

Error message 

 

sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: 
PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target

   at sun.security.ssl.Alerts.getSSLException(Unknown Source)

   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)

   at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

   at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

   at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown 
Source)

   at sun.security.ssl.ClientHandshaker.processMessage(Unknown 
Source)

   at sun.security.ssl.Handshaker.processLoop(Unknown Source)

   at sun.security.ssl.Handshaker.process_record(Unknown Source)

   at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

   at 
sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

   at 

Re: [Mifos-developer] Error in setting up Message gateway

2018-08-09 Thread Santosh Math
Hi Innocent,

Message gateway server is running. Looks like platform server is not able
to connect message gateway server because 'External Service is not
configured'.

By the way , your  platform server is running locally?



On Thu, Aug 9, 2018 at 12:42 PM,  wrote:

> Hi Santosh
>
>
>
> Please find attached screen short for message gateway server running
>
>
>
> e
>
>
>
> Regards
>
>
>
> *From:* Santosh Math 
> *Sent:* 08 August 2018 16:55
> *To:* innoc...@taatconsulting.com
> *Cc:* Sifiso Mtetwa ; Mifos software
> development ; Dev <
> dev@fineract.apache.org>
>
> *Subject:* Re: [Mifos-developer] Error in setting up Message gateway
>
>
>
> Please share the screenshot of the message gateway server running.
>
>
>
> On Wed 8 Aug, 2018, 8:24 PM Santosh Math, 
> wrote:
>
> Hi Innocent,
>
> Are u sure message gateway server is running successfully?
>
>
>
> On Wed 8 Aug, 2018, 6:53 PM ,  wrote:
>
> Hi Santosh
>
>
>
> I am having challenges with setting up message gateway on windows tomcat
> server.
>
> When I try to create sms campaign am getting an error
>
>
>
>  field is required
>
> error.msg.unable.to.connect.to.intermediate.server
>
>
>
> also the drop down for sms provider is not pick data in the database
>
> kindly Assist
>
>
>
> Regards
>
>
>
> Innocent Marozva
>
>
>
>
>
> *From:* sif...@skyburgsystems.org 
> *Sent:* 08 August 2018 09:17
> *To:* 'Mifos software development' 
> *Cc:* innoc...@taatconsulting.com
> *Subject:* RE: [Mifos-developer] Error in setting up Message gateway
>
>
>
> Hi Innocent,
>
>
>
> Checked your url and it is not loading. Please check that your ip address
> and portal are the correct ones used to access your tenants.
>
>
>
> Sifiso
>
>
>
> *From:* innoc...@taatconsulting.com 
> *Sent:* Wednesday, August 8, 2018 9:08 AM
> *To:* 'Mifos software development' 
> *Subject:* Re: [Mifos-developer] Error in setting up Message gateway
>
>
>
> Hi @all
>
>
>
> Could you please clarify on setting message gateway, am also facing some
> challenges in trying to get key using REST ,
>
>
>
> Using url
>
>
>
> My url: https://52.53.14.67:8445/tenants
>
> Body content  : application/json; charset=UTF-8
>
> Using POST method
>
> Body : {
>
> "tenantId":"metcash",
>
> "description": "SMS Campaign"
>
> }
>
>
>
>
>
>
>
> *Error message *
>
>
>
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target
>
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException:
> PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException:
> unable to find valid certification path to requested target
>
>at sun.security.ssl.Alerts.getSSLException(Unknown Source)
>
>at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
>
>at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
>
>at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
>
>at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown
> Source)
>
>at sun.security.ssl.ClientHandshaker.processMessage(Unknown
> Source)
>
>at sun.security.ssl.Handshaker.processLoop(Unknown Source)
>
>at sun.security.ssl.Handshaker.process_record(Unknown
> Source)
>
>at sun.security.ssl.SSLSocketImpl.readRecord(Unknown
> Source)
>
>at 
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown
> Source)
>
>at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown
> Source)
>
>at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown
> Source)
>
>at org.apache.http.conn.ssl.SSLConnectionSocketFactory.
> createLayeredSocket(SSLConnectionSocketFactory.java:394)
>
>at org.apache.http.conn.ssl.SSLConnectionSocketFactory.
> connectSocket(SSLConnectionSocketFactory.java:353)
>
>at org.apache.http.impl.conn.DefaultHttpClientConnectionOpe
> rator.connect(DefaultHttpClientConnectionOperator.java:141)
>
>at org.apache.http.impl.conn.PoolingHttpClientConnectionMan
> ager.connect(PoolingHttpClientConnectionManager.java:353)
>
>at org.apache.http.impl.execchain.MainClientExec.
> establishRoute(MainClientExec.java:380)
>
>at org.apache.http.impl.execchain.MainClientExec.
> execute(MainClientExec.java:236)
>
>at org.apache.http.impl.execchain.ProtocolExec.
> execute(ProtocolExec.java:184)
>
>at org.apache.http.impl.execchain.RetryExec.execute(
> RetryExec.java:88)
>
>at org.apache.http.impl.execchain.RedirectExec.
> execute(RedirectExec.java:110)
>
>at org.apache.http.impl.client.
> InternalHttpClient.doExecute(InternalHttpClient.java:184)
>
>at org.apache.http.impl.client.CloseableHttpClient.execute(
> 

RE: [Mifos-developer] Error in setting up Message gateway

2018-08-09 Thread innocent
Hi Santosh 

 

Please find attached screen short for message gateway server running 

 

e

 

Regards 

 

From: Santosh Math  
Sent: 08 August 2018 16:55
To: innoc...@taatconsulting.com
Cc: Sifiso Mtetwa ; Mifos software development 
; Dev 
Subject: Re: [Mifos-developer] Error in setting up Message gateway

 

Please share the screenshot of the message gateway server running.

 

On Wed 8 Aug, 2018, 8:24 PM Santosh Math, mailto:sant...@confluxtechnologies.com> > wrote:

Hi Innocent, 

Are u sure message gateway server is running successfully?

 

On Wed 8 Aug, 2018, 6:53 PM , mailto:innoc...@taatconsulting.com> > wrote:

Hi Santosh 

 

I am having challenges with setting up message gateway on windows tomcat server.

When I try to create sms campaign am getting an error 

 

 field is required

error.msg.unable.to.connect.to.intermediate.server

 

also the drop down for sms provider is not pick data in the database

kindly Assist 

 

Regards 

 

Innocent Marozva 

 

 

From: sif...@skyburgsystems.org   
mailto:sif...@skyburgsystems.org> > 
Sent: 08 August 2018 09:17
To: 'Mifos software development' mailto:mifos-develo...@lists.sourceforge.net> >
Cc: innoc...@taatconsulting.com  
Subject: RE: [Mifos-developer] Error in setting up Message gateway

 

Hi Innocent,

 

Checked your url and it is not loading. Please check that your ip address and 
portal are the correct ones used to access your tenants.

 

Sifiso

 

From: innoc...@taatconsulting.com   
mailto:innoc...@taatconsulting.com> > 
Sent: Wednesday, August 8, 2018 9:08 AM
To: 'Mifos software development' mailto:mifos-develo...@lists.sourceforge.net> >
Subject: Re: [Mifos-developer] Error in setting up Message gateway

 

Hi @all 

 

Could you please clarify on setting message gateway, am also facing some 
challenges in trying to get key using REST ,

 

Using url 

 

My url: https://52.53.14.67:8445/tenants

Body content  : application/json; charset=UTF-8

Using POST method 

Body : {

"tenantId":"metcash",

"description": "SMS Campaign"

}

 

 

 

Error message 

 

sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: 
PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target

   at sun.security.ssl.Alerts.getSSLException(Unknown Source)

   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)

   at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

   at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

   at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown 
Source)

   at sun.security.ssl.ClientHandshaker.processMessage(Unknown 
Source)

   at sun.security.ssl.Handshaker.processLoop(Unknown Source)

   at sun.security.ssl.Handshaker.process_record(Unknown Source)

   at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

   at 
sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

   at 
org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)

   at 
org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)

   at 
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)

   at 
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)

   at 
org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)

   at 
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)

   at 
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)

   at 
org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)

   at 
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)

   at 
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)

   at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)

   at 
org.wiztools.restclient.HTTPClientRequestExecuter.execute(HTTPClientRequestExecuter.java:391)

   at 
org.wiztools.restclient.ui.RESTViewImpl$3.run(RESTViewImpl.java:341)