dbTalk Databases Forums  

Problem with Mobilink Sync over https from Ultralite

sybase.public.sqlanywhere.ultralite sybase.public.sqlanywhere.ultralite


Discuss Problem with Mobilink Sync over https from Ultralite in the sybase.public.sqlanywhere.ultralite forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Justin Wong
 
Posts: n/a

Default Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 10:05 AM






Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.



Reply With Quote
  #2  
Old   
Josh Savill
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 11:12 AM






Justin Wong wrote:
Quote:
Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.


Is your mobile device connected to your network? The -85 error indicates
communication cannot be established with the MobiLink server.

--
Joshua Savill
Sybase iAnywhere - Product Manager


Reply With Quote
  #3  
Old   
Josh Savill
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 11:12 AM



Justin Wong wrote:
Quote:
Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.


Is your mobile device connected to your network? The -85 error indicates
communication cannot be established with the MobiLink server.

--
Joshua Savill
Sybase iAnywhere - Product Manager


Reply With Quote
  #4  
Old   
Josh Savill
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 11:12 AM



Justin Wong wrote:
Quote:
Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.


Is your mobile device connected to your network? The -85 error indicates
communication cannot be established with the MobiLink server.

--
Joshua Savill
Sybase iAnywhere - Product Manager


Reply With Quote
  #5  
Old   
Josh Savill
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 11:12 AM



Justin Wong wrote:
Quote:
Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.


Is your mobile device connected to your network? The -85 error indicates
communication cannot be established with the MobiLink server.

--
Joshua Savill
Sybase iAnywhere - Product Manager


Reply With Quote
  #6  
Old   
Josh Savill
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 11:12 AM



Justin Wong wrote:
Quote:
Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.


Is your mobile device connected to your network? The -85 error indicates
communication cannot be established with the MobiLink server.

--
Joshua Savill
Sybase iAnywhere - Product Manager


Reply With Quote
  #7  
Old   
Josh Savill
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 11:12 AM



Justin Wong wrote:
Quote:
Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.


Is your mobile device connected to your network? The -85 error indicates
communication cannot be established with the MobiLink server.

--
Joshua Savill
Sybase iAnywhere - Product Manager


Reply With Quote
  #8  
Old   
Josh Savill
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 11:12 AM



Justin Wong wrote:
Quote:
Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.


Is your mobile device connected to your network? The -85 error indicates
communication cannot be established with the MobiLink server.

--
Joshua Savill
Sybase iAnywhere - Product Manager


Reply With Quote
  #9  
Old   
Josh Savill
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 11:12 AM



Justin Wong wrote:
Quote:
Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.


Is your mobile device connected to your network? The -85 error indicates
communication cannot be established with the MobiLink server.

--
Joshua Savill
Sybase iAnywhere - Product Manager


Reply With Quote
  #10  
Old   
Josh Savill
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 02-27-2008 , 11:12 AM



Justin Wong wrote:
Quote:
Hi everyone,

I am trying out the Mobilink link sample in <SQL Anywhere Samples
Dir>\Ultralite\CustDB and managed to do a sync with my server (IP address
192.168.1.100). However after modifying the code to try out https, I get a
SQL Error -85 on my mobile device (Windows Mobile 5) when I try to sync.

Here are the steps I did.
1) Create the public cert (cert.pem) and server id file (id.pem) using
createcert

2) On the server side, I ran the following command
mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -x
https(port=8081;tls_type=rsa;certificate=c:\id.pem ) -v+

3) On the client side code in the CustDB C++ project, I made the following
changes

In the initDatabase procedure
I added the following line
Database.ConfigureSynch( "https",
TEXT("host=192.168.1.100;port=8081;tls_type=rsa;tr usted_certificates=\\cert.pem"),
false, NULL );

4) In the CDemo::Init procedure of custdbcomp.cpp, I added the following
line
ULEnableRsaSyncEncryption ( m_Sqlca.GetCA() );

5) I have included ulrt.lib and ulrsa.lib into the project and placed
mlcrsa.dll and ulrt10.dll into the \Windows folder of my mobile device.

Can someone advise me if I'm doing something wrong or whether I left out any
steps? Thanks a lot.


Is your mobile device connected to your network? The -85 error indicates
communication cannot be established with the MobiLink server.

--
Joshua Savill
Sybase iAnywhere - Product Manager


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.