Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 38
  1. #1
    Regular Contributor Alex_Polt's Avatar
    Join Date
    Mar 2007
    Posts
    127
    I'm trying to make connection with internal secure element:


    String uri = System.getProperty("internal.se.url");
    ISO14443Connection iseConn = (ISO14443Connection) Connector.open(uri);

    But then I run MIDlet i got Security Exception, should I set certain permissions to be allowed to use ISO14443Connection.


    Also in Ticketing MIDlet example in 6131 SDK the url is "internal.sc.url", but if I try it I'got null.

    So what is the problem?

  2. #2
    Regular Contributor Raluca_'s Avatar
    Join Date
    Mar 2007
    Location
    Helsinki, Finland
    Posts
    91
    You don’t need to set any permission to access the secure element or to use the ISO14443Connection. However, if you want to access the phone’s secure element, the MIDlet has to be in the Trusted 3rd party security domain (has to be signed with a trusted third party certificate).

    If the MIDlet is not signed with a third party certificate, you get the security exception that you were mentioning.

    The correct url for accessing the secure element on the phone is “internal.se.url”.

    On the 6131 NFC SDK Emulator, the url for accessing the internal card in the TicketingExample is “internal.sc.url”, as this example uses an emulated internal card.
    Raluca Cindrea
    Helsinki, Finland
    www.nokia.com/nfc

  3. #3
    Regular Contributor Alex_Polt's Avatar
    Join Date
    Mar 2007
    Posts
    127
    Thank you it works now.

  4. #4
    Regular Contributor tdelazzari's Avatar
    Join Date
    Feb 2007
    Location
    France
    Posts
    56
    Quote Originally Posted by Raluca_
    the MIDlet has to be in the Trusted 3rd party security domain (has to be signed with a trusted third party certificate).
    Please can you tell me how to do this for the NOKIA 6131? We tried a couple Verisign Class 3 certs but we still have a Security Exception. Is this certificate linked to Venyon?

  5. #5
    Regular Contributor Alex_Polt's Avatar
    Join Date
    Mar 2007
    Posts
    127
    We are using Thawte certificate, it doesn't deal with Venyon at all. Just certificate to sign code.

  6. #6
    Regular Contributor tdelazzari's Avatar
    Join Date
    Feb 2007
    Location
    France
    Posts
    56
    Do you know where I can test a free trial certificate ? Twate seems to propose free trials for SSL Web Servers' certs only.
    EDIT: We have a SecurityException while opening an ISO14443Connection on internal.mf.url. Is there a JAD permission attribute for this or certificate is the only way?
    Last edited by tdelazzari; 2007-04-10 at 13:06.

  7. #7
    Regular Contributor yakdogan's Avatar
    Join Date
    Mar 2003
    Posts
    53
    Quote Originally Posted by Raluca_
    You don’t need to set any permission to access the secure element or to use the ISO14443Connection. However, if you want to access the phone’s secure element, the MIDlet has to be in the Trusted 3rd party security domain (has to be signed with a trusted third party certificate).

    If the MIDlet is not signed with a third party certificate, you get the security exception that you were mentioning.
    Sorry I'm not clear about it !
    Do i need a signed MIDlet with a third party certificate also to test only with emulator without a 6131 real phone?
    How can I get a third party certificate (trial) for development goals?

    Best regards.

  8. #8
    Regular Contributor Raluca_'s Avatar
    Join Date
    Mar 2007
    Location
    Helsinki, Finland
    Posts
    91
    Quote Originally Posted by yakdogan
    Sorry I'm not clear about it !
    Do i need a signed MIDlet with a third party certificate also to test only with emulator without a 6131 real phone?
    How can I get a third party certificate (trial) for development goals?

    Best regards.
    When using the 6131 NFC Emulator, you can change the Security level and simulate, for example, the "manufacturer security level", where your MIDlet is treated as a MIDlet provided by Nokia. By doing this, you don't have to sign the MIDlet if you only want to test it on the emulator.

    You can find more information about how to change the Security levels in section 11 (Emulating MIDlet suite security issues) of the User's Guide.

    However, if you want to try the MIDlet on a real phone, you will have to have it signed with a trusted third party certificate.
    Raluca Cindrea
    Helsinki, Finland
    www.nokia.com/nfc

  9. #9
    Regular Contributor tdelazzari's Avatar
    Join Date
    Feb 2007
    Location
    France
    Posts
    56
    Do you know where we can download a code signing trial certificate to work with MIDlets ?

  10. #10
    Regular Contributor tdelazzari's Avatar
    Join Date
    Feb 2007
    Location
    France
    Posts
    56
    Quote Originally Posted by Alex_Polt
    We are using Thawte certificate, it doesn't deal with Venyon at all. Just certificate to sign code.
    Well I think we'll have to buy one. Can you tell me which certificate we have to buy from Thwate ? Code Signing for JavaSoft dev ? 200$ a year

  11. #11
    Regular Contributor Alex_Polt's Avatar
    Join Date
    Mar 2007
    Posts
    127
    Quote Originally Posted by tdelazzari
    Well I think we'll have to buy one. Can you tell me which certificate we have to buy from Thwate ? Code Signing for JavaSoft dev ? 200$ a year
    Yes exactly that one.

  12. #12
    Regular Contributor geri-m's Avatar
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321
    You do get a discount from Thawte when you say that it is for an acadmical institution; actually this needs some negotiation ;-)

  13. #13
    Registered User mkdani's Avatar
    Join Date
    Sep 2005
    Posts
    16
    Hello
    I want to read and write the external mifare cards(ultralite/1K) using nokia 6131.
    When I am trying to run the example 'MFStandardExampleMidlet' on the real phone, it gives an error msg. 'java.lang.SecurityException'.
    I am getting the same error for any other examples. But on emulator these examples are working fine.

  14. #14
    Regular Contributor Alex_Polt's Avatar
    Join Date
    Mar 2007
    Posts
    127
    MFStandardExampleMidlet connects to Secure Element. To do this MIDlet should be signed. If MIDlet not signed it throws the java.lang.SecurityException.

  15. #15
    Registered User mkdani's Avatar
    Join Date
    Sep 2005
    Posts
    16
    Is it necessary to sign MIDlet for reading/writing external mifare cards?

Page 1 of 3 123 LastLast

Similar Threads

  1. VS.Net 2003 Carbide 2.01 and epoc32.exe
    By ValentinK in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2007-01-12, 12:31
  2. Security Exception in Socket creation
    By veeyenkay in forum Mobile Java Networking & Messaging & Security
    Replies: 15
    Last Post: 2006-10-18, 07:56
  3. bluetooth Security Block exception
    By abdsahin in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-09-18, 22:33
  4. i got the Security Exception when i call the
    By madnan_java in forum Mobile Java General
    Replies: 1
    Last Post: 2004-10-06, 12:13
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved