You Are Here:

Community: Blogs

Open Source Bluetooth PAN's Forum Nokia Blog

Accomplish SSL connection from S60v3

Carbider | 19 November, 2007 09:47

The PAN profile defines how to enable Bluetooth devices to participate in a personal area network.

One of the roles in PAN profile is a Network Access Point (NAP) that provides an Ethernet bridge to support network services to the PAN user. Read about it here: PAN specification.

 

For now I will try to simulate connection to a NAP from my phone. Why simulate? Because to achieve the real connection I need realization of BNEP protocol class which will transmit Ethernet payloads via Bluetooth.

Since Bluetooth can be eavesdropped in on, we want to use SSL as David said here in comments.

So the goal for now is to connect to some server using secure internet connection on my phone.

 

I chose the www.mozilla.org  SSLv3 site as a server to connect to.

 

I found the CSecureSocket example at symbian.com/.../v9.2docs/.../ but not everything went of smoothly rather the connection was not established and system was completed with panics.

It seems that that example is pretty old even not for 3rd edition. But I can’t assert so.

However I scoped the similar problems and documents over here and here.

When got tangled I used some parts of S60v3 Chat code example with insecure internet connection.

The “guiSetBluspan” application that was initiated at previous posts looks like this now:

you need to click “Options” menu then pick “Connect/Disconnect” item and then pick “NAP” item.

 

 

Diagram 1 – Connecting from application

After some seconds server will send SSL certificate. You need answer “Continue”.

 

 

Diagram 2 – Certificate question

After all steps of connection, handshaking, page request, getting server response and closing connection the notification will appear about successful operation.

 

 

Diagram 3 – Connection finished

The objects of these routines were to establish connection to secure HTTPS connection where NAP’s authorization page will be.

At next researches I need to connect to NAP server, provide user’s login and password. NAP is connected to Radius server which will verify user existence and will start accounting on him.

The source codes of application above are provided by this link: guiSetBluspan Zip archive v 0.003 (Nokia’s wiki)

See this posts here to know how to use sources.

The Secure Connection engine in focused in /Core/ folder and is called from “guiSetBluspanSettingItemListView.cpp”

 

RSSComments

ExcelLent Work

vlccru | 30/11/2007, 13:31

Konstantine,

You are doing a cracking work, and hopefully we will being hands on soon with the effort. We are developing WoB solutions, both hardware and software and this project could be specially helpful to us.
Keep on rockin“

Re:ExcelLent Work

Carbider | 03/12/2007, 09:54

Carbider

Hey, thanks!
I appreciate that.

You must login to post comments. Login
 

Rate This

 
 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fblogsE2eforumE2enokiaE2ecomE2fblogE2fopenE2dsourceE2dbluetoothE2dpansE2dforumE2dnokiaE2dblogE2f2007E2f11E2f19E2faccomplishE2dsslE2dconnectionE2dfromE2ds60v3X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZBlogContentQ qdcZtypeQUqfntypeZBlogE45ntryQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZconnectivityQ qfnZtopicQUqfnTopicZcppQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtopicQUqfnTopicZtestingQ qfnZtypeQUqfntypeZBlogContentQ qfnZtypeQUqfntypeZBlogE45ntryQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxconnectivityX qfnZuserE5ftagQSxs60X qfnZuserE5ftagQSxsymbianE2dcE2bE2bX qfnZuserE5ftagQSxtestingX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZBlogContentQ qrdfZtypeQUqfntypeZBlogE45ntryQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ