![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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. |
#4
| |||
| |||
|
|
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. |
#5
| |||
| |||
|
|
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. |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
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. |
#9
| |||
| |||
|
|
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. |
#10
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |