Thread: [Jsdsi-users] Certificates and Trust
Status: Pre-Alpha
Brought to you by:
sajma
From: Somaya A. <som...@ya...> - 2005-10-25 10:08:11
|
Hi all, I am working on a project that is supposed to build trust management system. And I want to decide the type of certificate to work with. However Im a little bit confused as i don't have a strong background in PKI, I dont whether to use X.509v3 or SPKI certificates. So I would be really grateful if you answered my inquiries. First, in my system I need identity certificates, authorization certificates, and capability certificates. For Identity certificates, I need it not just to bind public keys to names, however I need it to bind the public key to more specific information (e.g. membership in a certain organization, age, student in a certain school, etc). For the capability certificate, I need it to bind the public key to a certain capability (e.g. providing a certain service) .. so which of them do u think is more appropriate in my case? Second, and incase of SPKI is more appropriate, do you think JSDSI would would be useful for me? I want a tool that let me create/generate spki certificates, delegate certificates, verify certificates and certification paths. Any further advice in this track is much appreciated. Thanks in advance Somaya __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com |
From: Sameer A. <aj...@gm...> - 2005-10-25 13:30:26
|
SPKI should provide what you need. SPKI name certificates provide a very flexibly way to bind names to sets of keys and allows principals to delegate names, e.g.: K_MIT faculty -> K_MIT eecs_dept faculty This says MIT's name "faculty" includes the keys in MIT's EECS department's faculty. This name is resolved by resolving "K_MIT eecs_dept" to the EECS department key(s), then using that key to resolve faculty. And note that MIT can have another cert that adds more keys to its faculty set, e.g.: K_MIT faculty -> K_MIT physics_dept faculty For membership in a particular organization, you might represent this via names or via authorization certs; it depends on what you're trying to achieve. For example, name certs let you represent an organization as a set of public keys, e.g.: K_org_manager organization_members -> K_sameer This cert says the organization manager defines the groups "organization members" to include my public key. K_org_manager organization_members -> K_org_manager organization_members organization_members This cert says that organization members can further add more members via their own "organization_members" groups. But you can achieve some more flexibility with auth certificates. In particular, it's easies to express delegation of authority, and you can express more than just membership: K_org_manager (tag (* set member)) -> K_sameer K_org_manager (tag (* set member manager)) -> K_somaya These two certs delegate the "member" authorization to you and me, and also delegate the "manager" authorization to you. The *application* (i.e., access controller) for the group must interpret these authorization tags -- SPKI/SDSI doesn't interpret tags, it just knows how to combine them. Finally, note that the object of a certificate (the right-hand-side) need not be a key; it can be an "ObjectHash", i.e., an identifier for an arbitrary object. In particular, this ObjectHash could refer to a capability object that you define. But I think an auth certificate is a more direct way of representing a capability in SPKI/SDSI. S On 10/25/05, Somaya Aboulwafa <som...@ya...> wrote: > Hi all, > I am working on a project that is supposed to build > trust management system. And I want to decide the type > of certificate to work with. However I'm a little bit > confused as i don't have a strong background in PKI, I > don't whether to use X.509v3 or SPKI certificates. So > I would be really grateful if you answered my > inquiries. > > First, in my system I need identity certificates, > authorization certificates, and capability > certificates. For Identity certificates, I need it not > just to bind public keys to names, however I need it > to bind the public key to more specific information > (e.g. membership in a certain organization, age, > student in a certain school, etc). For the capability > certificate, I need it to bind the public key to a > certain capability (e.g. providing a certain service) > .. so which of them do u think is more appropriate in > my case? > > Second, and incase of SPKI is more appropriate, do you > think JSDSI would would be useful for me? I want a > tool that let me create/generate spki certificates, > delegate certificates, verify certificates and > certification paths. > > Any further advice in this track is much appreciated. > Thanks in advance > Somaya > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Jsdsi-users mailing list > Jsd...@li... > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > -- Sameer http://ajmani.net |
From: Somaya A. <som...@ya...> - 2005-10-27 13:47:01
|
Many thanks for your descriptive reply. I've downloaded JSDSI and tried to use it. But actually I felt that I miss some SPKI related basics and I need to further enhance my knowledge. So do u have any good resources about it to recommend other than the RFC2693 and RFC2692. Thanks again. Somaya --- Sameer Ajmani <aj...@gm...> wrote: > SPKI should provide what you need. SPKI name > certificates provide a > very flexibly way to bind names to sets of keys and > allows principals > to delegate names, e.g.: > K_MIT faculty -> K_MIT eecs_dept faculty > This says MIT's name "faculty" includes the keys in > MIT's EECS > department's faculty. This name is resolved by > resolving "K_MIT > eecs_dept" to the EECS department key(s), then using > that key to > resolve faculty. And note that MIT can have another > cert that adds > more keys to its faculty set, e.g.: > K_MIT faculty -> K_MIT physics_dept faculty > > For membership in a particular organization, you > might represent this > via names or via authorization certs; it depends on > what you're trying > to achieve. For example, name certs let you > represent an organization > as a set of public keys, e.g.: > K_org_manager organization_members -> K_sameer > This cert says the organization manager defines the > groups > "organization members" to include my public key. > K_org_manager organization_members -> > K_org_manager organization_members > organization_members > This cert says that organization members can further > add more members > via their own "organization_members" groups. > > But you can achieve some more flexibility with auth > certificates. In > particular, it's easies to express delegation of > authority, and you > can express more than just membership: > K_org_manager (tag (* set member)) -> K_sameer > K_org_manager (tag (* set member manager)) -> > K_somaya > > These two certs delegate the "member" authorization > to you and me, and > also delegate the "manager" authorization to you. > The *application* > (i.e., access controller) for the group must > interpret these > authorization tags -- SPKI/SDSI doesn't interpret > tags, it just knows > how to combine them. > > Finally, note that the object of a certificate (the > right-hand-side) > need not be a key; it can be an "ObjectHash", i.e., > an identifier for > an arbitrary object. In particular, this ObjectHash > could refer to a > capability object that you define. But I think an > auth certificate is > a more direct way of representing a capability in > SPKI/SDSI. > > S > > On 10/25/05, Somaya Aboulwafa > <som...@ya...> wrote: > > Hi all, > > I am working on a project that is supposed to > build > > trust management system. And I want to decide the > type > > of certificate to work with. However I'm a little > bit > > confused as i don't have a strong background in > PKI, I > > don't whether to use X.509v3 or SPKI certificates. > So > > I would be really grateful if you answered my > > inquiries. > > > > First, in my system I need identity certificates, > > authorization certificates, and capability > > certificates. For Identity certificates, I need it > not > > just to bind public keys to names, however I need > it > > to bind the public key to more specific > information > > (e.g. membership in a certain organization, age, > > student in a certain school, etc). For the > capability > > certificate, I need it to bind the public key to a > > certain capability (e.g. providing a certain > service) > > .. so which of them do u think is more appropriate > in > > my case? > > > > Second, and incase of SPKI is more appropriate, do > you > > think JSDSI would would be useful for me? I want a > > tool that let me create/generate spki > certificates, > > delegate certificates, verify certificates and > > certification paths. > > > > Any further advice in this track is much > appreciated. > > Thanks in advance > > Somaya > > > > > > > > __________________________________ > > Yahoo! FareChase: Search multiple travel sites in > one click. > > http://farechase.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. > > Get Certified Today * Register for a JBoss > Training Course > > Free Certification Exam for All Training Attendees > Through End of 2005 > > Visit http://www.jboss.com/services/certification > for more information > > _______________________________________________ > > Jsdsi-users mailing list > > Jsd...@li... > > > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > > > > > > -- > Sameer > http://ajmani.net > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training > Course > Free Certification Exam for All Training Attendees > Through End of 2005 > Visit http://www.jboss.com/services/certification > for more information > _______________________________________________ > Jsdsi-users mailing list > Jsd...@li... > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com |
From: Sameer A. <aj...@gm...> - 2005-10-28 23:18:31
|
http://world.std.com/~cme/html/spki.html has a bunch of links. The RFCs are probably the best resource, though. S On 10/27/05, Somaya Aboulwafa <som...@ya...> wrote: > > Many thanks for your descriptive reply. > I've downloaded JSDSI and tried to use it. But > actually I felt that I miss some SPKI related basics > and I need to further enhance my knowledge. So do u > have any good resources about it to recommend other > than the RFC2693 and RFC2692. > Thanks again. > Somaya > > --- Sameer Ajmani <aj...@gm...> wrote: > > > SPKI should provide what you need. SPKI name > > certificates provide a > > very flexibly way to bind names to sets of keys and > > allows principals > > to delegate names, e.g.: > > K_MIT faculty -> K_MIT eecs_dept faculty > > This says MIT's name "faculty" includes the keys in > > MIT's EECS > > department's faculty. This name is resolved by > > resolving "K_MIT > > eecs_dept" to the EECS department key(s), then using > > that key to > > resolve faculty. And note that MIT can have another > > cert that adds > > more keys to its faculty set, e.g.: > > K_MIT faculty -> K_MIT physics_dept faculty > > > > For membership in a particular organization, you > > might represent this > > via names or via authorization certs; it depends on > > what you're trying > > to achieve. For example, name certs let you > > represent an organization > > as a set of public keys, e.g.: > > K_org_manager organization_members -> K_sameer > > This cert says the organization manager defines the > > groups > > "organization members" to include my public key. > > K_org_manager organization_members -> > > K_org_manager organization_members > > organization_members > > This cert says that organization members can further > > add more members > > via their own "organization_members" groups. > > > > But you can achieve some more flexibility with auth > > certificates. In > > particular, it's easies to express delegation of > > authority, and you > > can express more than just membership: > > K_org_manager (tag (* set member)) -> K_sameer > > K_org_manager (tag (* set member manager)) -> > > K_somaya > > > > These two certs delegate the "member" authorization > > to you and me, and > > also delegate the "manager" authorization to you. > > The *application* > > (i.e., access controller) for the group must > > interpret these > > authorization tags -- SPKI/SDSI doesn't interpret > > tags, it just knows > > how to combine them. > > > > Finally, note that the object of a certificate (the > > right-hand-side) > > need not be a key; it can be an "ObjectHash", i.e., > > an identifier for > > an arbitrary object. In particular, this ObjectHash > > could refer to a > > capability object that you define. But I think an > > auth certificate is > > a more direct way of representing a capability in > > SPKI/SDSI. > > > > S > > > > On 10/25/05, Somaya Aboulwafa > > <som...@ya...> wrote: > > > Hi all, > > > I am working on a project that is supposed to > > build > > > trust management system. And I want to decide the > > type > > > of certificate to work with. However I'm a little > > bit > > > confused as i don't have a strong background in > > PKI, I > > > don't whether to use X.509v3 or SPKI certificates. > > So > > > I would be really grateful if you answered my > > > inquiries. > > > > > > First, in my system I need identity certificates, > > > authorization certificates, and capability > > > certificates. For Identity certificates, I need it > > not > > > just to bind public keys to names, however I need > > it > > > to bind the public key to more specific > > information > > > (e.g. membership in a certain organization, age, > > > student in a certain school, etc). For the > > capability > > > certificate, I need it to bind the public key to a > > > certain capability (e.g. providing a certain > > service) > > > .. so which of them do u think is more appropriate > > in > > > my case? > > > > > > Second, and incase of SPKI is more appropriate, do > > you > > > think JSDSI would would be useful for me? I want a > > > tool that let me create/generate spki > > certificates, > > > delegate certificates, verify certificates and > > > certification paths. > > > > > > Any further advice in this track is much > > appreciated. > > > Thanks in advance > > > Somaya > > > > > > > > > > > > __________________________________ > > > Yahoo! FareChase: Search multiple travel sites in > > one click. > > > http://farechase.yahoo.com > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by the JBoss Inc. > > > Get Certified Today * Register for a JBoss > > Training Course > > > Free Certification Exam for All Training Attendees > > Through End of 2005 > > > Visit http://www.jboss.com/services/certification > > for more information > > > _______________________________________________ > > > Jsdsi-users mailing list > > > Jsd...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > > > > > > > > > > > -- > > Sameer > > http://ajmani.net > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. > > Get Certified Today * Register for a JBoss Training > > Course > > Free Certification Exam for All Training Attendees > > Through End of 2005 > > Visit http://www.jboss.com/services/certification > > for more information > > _______________________________________________ > > Jsdsi-users mailing list > > Jsd...@li... > > > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > > > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > -- Sameer http://ajmani.net |
From: Somaya A. <som...@ya...> - 2005-10-31 14:08:10
|
Hi Sameer, I just want to know how could I have an offline version of the latest JSDSI Javadoc that is found @ http://jsdsi.sourceforge.net/apidocs/index.html. I have dowloaded stuff from the CVS, however the downloaded javadoc from the cvs is not up-to-date. Many Thanks, Somaya __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
From: Sameer A. <aj...@gm...> - 2005-10-31 15:50:21
|
The easiest way will be for you to download the source and generate it yourself -- I don't have any simpler way to do it myself. S On 10/31/05, Somaya Aboulwafa <som...@ya...> wrote: > Hi Sameer, > > I just want to know how could I have an offline > version of the latest JSDSI Javadoc that is found @ > http://jsdsi.sourceforge.net/apidocs/index.html. > I have dowloaded stuff from the CVS, however the > downloaded javadoc from the cvs is not up-to-date. > > Many Thanks, > Somaya > > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Jsdsi-users mailing list > Jsd...@li... > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > -- Sameer http://ajmani.net |
From: Somaya A. <som...@ya...> - 2005-11-01 13:20:35
|
Hi, I am trying to create a new keypair as follows: KeyPair signer = KeyPairFactory.create(KeyEnum.RSA); but I got the following Runtime Exception: jsdsi.JsdsiRuntimeException: java.security.NoSuchAlgorithmException: SPKI/RSA KeyPairGenerator not available at jsdsi.util.KeyPairFactory.createKeyPairGenerator(KeyPairFactory.java:155) at jsdsi.util.KeyPairFactory.getKeyPairGenerator(KeyPairFactory.java:120) at jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:102) at jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:59) So any idea about why is this happening and how to overcome this? Thanks, Somaya __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs |
From: Sameer A. <aj...@gm...> - 2005-11-01 15:12:39
|
Sean, can you answer this? Looks like you wrote this code. This like is somewhat suspect: 153 kpg =3D KeyPairGenerator.getInstance("SPKI/" + keyEnum.jdkN= ame()) There's no KeyPairGenerator registered as "SPKI/RSA". If you remove the "SPKI/", this should work (I think the Java RSA library is simply "RSA"), but this is just a hack for now. Hopefully Sean has an idea of how this was supposed to work :) S On 11/1/05, Somaya Aboulwafa <som...@ya...> wrote: > Hi, > I am trying to create a new keypair as follows: > > KeyPair signer =3D KeyPairFactory.create(KeyEnum.RSA); > > but I got the following Runtime Exception: > > jsdsi.JsdsiRuntimeException: > java.security.NoSuchAlgorithmException: SPKI/RSA > KeyPairGenerator not available > at > jsdsi.util.KeyPairFactory.createKeyPairGenerator(KeyPairFactory.java:155) > at > jsdsi.util.KeyPairFactory.getKeyPairGenerator(KeyPairFactory.java:120) > at > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:102) > at > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:59) > > So any idea about why is this happening and how to > overcome this? > > Thanks, > Somaya > > > > __________________________________ > Start your day with Yahoo! - Make it your home page! > http://www.yahoo.com/r/hs > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Jsdsi-users mailing list > Jsd...@li... > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > -- Sameer http://ajmani.net |
From: Somaya A. <som...@ya...> - 2005-11-02 10:02:02
|
Hi Sameer, This is weird, as most of the test cases classes use this way to create KeyPairs. What is the difference between those 2 keyPair Objects signer1 and signer2: KeyPair signer1=jsdsi.RSAPublicKey.create(); KeyPair signer2 = KeyPairFactory.create(KeyEnum.RSA); I have two other questions: 1- Is there any other ways to create KeyPair Objects?? 2- How could I test whether two keys are identical or not? Shall I use the equal method or it is not overridden to test on the value rather than the reference? .. Same question for signatures? Thanks, Somaya --- Sameer Ajmani <aj...@gm...> wrote: > Sean, can you answer this? Looks like you wrote > this code. > > This like is somewhat suspect: > 153 kpg = > KeyPairGenerator.getInstance("SPKI/" + > keyEnum.jdkName()) > > There's no KeyPairGenerator registered as > "SPKI/RSA". If you remove > the "SPKI/", this should work (I think the Java RSA > library is simply > "RSA"), but this is just a hack for now. Hopefully > Sean has an idea > of how this was supposed to work :) > > S > > On 11/1/05, Somaya Aboulwafa > <som...@ya...> wrote: > > Hi, > > I am trying to create a new keypair as follows: > > > > KeyPair signer = > KeyPairFactory.create(KeyEnum.RSA); > > > > but I got the following Runtime Exception: > > > > jsdsi.JsdsiRuntimeException: > > java.security.NoSuchAlgorithmException: SPKI/RSA > > KeyPairGenerator not available > > at > > > jsdsi.util.KeyPairFactory.createKeyPairGenerator(KeyPairFactory.java:155) > > at > > > jsdsi.util.KeyPairFactory.getKeyPairGenerator(KeyPairFactory.java:120) > > at > > > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:102) > > at > > > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:59) > > > > So any idea about why is this happening and how to > > overcome this? > > > > Thanks, > > Somaya > > > > > > > > __________________________________ > > Start your day with Yahoo! - Make it your home > page! > > http://www.yahoo.com/r/hs > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. > > Get Certified Today * Register for a JBoss > Training Course > > Free Certification Exam for All Training Attendees > Through End of 2005 > > Visit http://www.jboss.com/services/certification > for more information > > _______________________________________________ > > Jsdsi-users mailing list > > Jsd...@li... > > > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > > > > > > -- > Sameer > http://ajmani.net > __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com |
From: Sameer A. <aj...@gm...> - 2005-11-02 14:30:53
|
On 11/2/05, Somaya Aboulwafa <som...@ya...> wrote: > Hi Sameer, > > This is weird, as most of the test cases classes use > this way to create KeyPairs. Ahhh -- I bet the problem is that you have not installed the Jsdsi Provider. Try calling jsdsi.Provider.install() in your main. > > What is the difference between those 2 keyPair Objects > signer1 and signer2: > KeyPair signer1=3Djsdsi.RSAPublicKey.create(); > KeyPair signer2 =3D KeyPairFactory.create(KeyEnum.RSA); > > I have two other questions: > 1- Is there any other ways to create KeyPair Objects?? > 2- How could I test whether two keys are identical or > not? Shall I use the equal method or it is not > overridden to test on the value rather than the > reference? .. Same question for signatures? I'm really not sure -- I did not write these classes and am not familiar with them. Sean could answer these, but till then, reading the code is the best plan :) That said, Signature does indeed override equals() to compare-by-value. Note sure about KeyPair; perhaps just read the code for equals(). S > > Thanks, > Somaya > > > --- Sameer Ajmani <aj...@gm...> wrote: > > > Sean, can you answer this? Looks like you wrote > > this code. > > > > This like is somewhat suspect: > > 153 kpg =3D > > KeyPairGenerator.getInstance("SPKI/" + > > keyEnum.jdkName()) > > > > There's no KeyPairGenerator registered as > > "SPKI/RSA". If you remove > > the "SPKI/", this should work (I think the Java RSA > > library is simply > > "RSA"), but this is just a hack for now. Hopefully > > Sean has an idea > > of how this was supposed to work :) > > > > S > > > > On 11/1/05, Somaya Aboulwafa > > <som...@ya...> wrote: > > > Hi, > > > I am trying to create a new keypair as follows: > > > > > > KeyPair signer =3D > > KeyPairFactory.create(KeyEnum.RSA); > > > > > > but I got the following Runtime Exception: > > > > > > jsdsi.JsdsiRuntimeException: > > > java.security.NoSuchAlgorithmException: SPKI/RSA > > > KeyPairGenerator not available > > > at > > > > > > jsdsi.util.KeyPairFactory.createKeyPairGenerator(KeyPairFactory.java:155) > > > at > > > > > > jsdsi.util.KeyPairFactory.getKeyPairGenerator(KeyPairFactory.java:120) > > > at > > > > > > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:102) > > > at > > > > > > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:59) > > > > > > So any idea about why is this happening and how to > > > overcome this? > > > > > > Thanks, > > > Somaya > > > > > > > > > > > > __________________________________ > > > Start your day with Yahoo! - Make it your home > > page! > > > http://www.yahoo.com/r/hs > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by the JBoss Inc. > > > Get Certified Today * Register for a JBoss > > Training Course > > > Free Certification Exam for All Training Attendees > > Through End of 2005 > > > Visit http://www.jboss.com/services/certification > > for more information > > > _______________________________________________ > > > Jsdsi-users mailing list > > > Jsd...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > > > > > > > > > > > -- > > Sameer > > http://ajmani.net > > > > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > -- Sameer http://ajmani.net |
From: Somaya A. <som...@ya...> - 2005-11-03 18:56:32
|
Thanks. But what does jsdsi.Provider.install() actually do ? Sameer Ajmani <aj...@gm...> wrote: On 11/2/05, Somaya Aboulwafa wrote: > Hi Sameer, > > This is weird, as most of the test cases classes use > this way to create KeyPairs. Ahhh -- I bet the problem is that you have not installed the Jsdsi Provider. Try calling jsdsi.Provider.install() in your main. > > What is the difference between those 2 keyPair Objects > signer1 and signer2: > KeyPair signer1=jsdsi.RSAPublicKey.create(); > KeyPair signer2 = KeyPairFactory.create(KeyEnum.RSA); > > I have two other questions: > 1- Is there any other ways to create KeyPair Objects?? > 2- How could I test whether two keys are identical or > not? Shall I use the equal method or it is not > overridden to test on the value rather than the > reference? .. Same question for signatures? I'm really not sure -- I did not write these classes and am not familiar with them. Sean could answer these, but till then, reading the code is the best plan :) That said, Signature does indeed override equals() to compare-by-value. Note sure about KeyPair; perhaps just read the code for equals(). S > > Thanks, > Somaya > > > --- Sameer Ajmani wrote: > > > Sean, can you answer this? Looks like you wrote > > this code. > > > > This like is somewhat suspect: > > 153 kpg = > > KeyPairGenerator.getInstance("SPKI/" + > > keyEnum.jdkName()) > > > > There's no KeyPairGenerator registered as > > "SPKI/RSA". If you remove > > the "SPKI/", this should work (I think the Java RSA > > library is simply > > "RSA"), but this is just a hack for now. Hopefully > > Sean has an idea > > of how this was supposed to work :) > > > > S > > > > On 11/1/05, Somaya Aboulwafa > > wrote: > > > Hi, > > > I am trying to create a new keypair as follows: > > > > > > KeyPair signer = > > KeyPairFactory.create(KeyEnum.RSA); > > > > > > but I got the following Runtime Exception: > > > > > > jsdsi.JsdsiRuntimeException: > > > java.security.NoSuchAlgorithmException: SPKI/RSA > > > KeyPairGenerator not available > > > at > > > > > > jsdsi.util.KeyPairFactory.createKeyPairGenerator(KeyPairFactory.java:155) > > > at > > > > > > jsdsi.util.KeyPairFactory.getKeyPairGenerator(KeyPairFactory.java:120) > > > at > > > > > > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:102) > > > at > > > > > > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:59) > > > > > > So any idea about why is this happening and how to > > > overcome this? > > > > > > Thanks, > > > Somaya > > > > > > > > > > > > __________________________________ > > > Start your day with Yahoo! - Make it your home > > page! > > > http://www.yahoo.com/r/hs > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by the JBoss Inc. > > > Get Certified Today * Register for a JBoss > > Training Course > > > Free Certification Exam for All Training Attendees > > Through End of 2005 > > > Visit http://www.jboss.com/services/certification > > for more information > > > _______________________________________________ > > > Jsdsi-users mailing list > > > Jsd...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > > > > > > > > > > > -- > > Sameer > > http://ajmani.net > > > > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > -- Sameer http://ajmani.net ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Jsdsi-users mailing list Jsd...@li... https://lists.sourceforge.net/lists/listinfo/jsdsi-users "æóáóäóÈúáõæóäøóßõãú ÈöÔóíúÁò ãøöäó ÇáúÎóæÝú æóÇáúÌõæÚö æóäóÞúÕò ãøöäó ÇáÃóãóæóÇáö æóÇáÃäÝõÓö æóÇáËøóãóÑóÇÊö æóÈóÔøöÑö ÇáÕøóÇÈöÑöíä ÇáøóÐöíäó ÅöÐóÇ ÃóÕóÇÈóÊúåõã ãøõÕöíÈóÉñ ÞóÇáõæÇú ÅöäøóÇ áöáøåö æóÅöäøóÜÇ Åöáóíúåö ÑóÇÌöÚæäó ÃõæáóÜÆößó Úóáóíúåöãú ÕóáóæóÇÊñ ãøöä ÑøóÈøöåöãú æóÑóÍúãóÉñ æóÃõæáóÜÆößó åõãõ ÇáúãõåúÊóÏõæä" ÇáÈÞÑÉ 155- 157 --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. |
From: Sameer A. <aj...@gm...> - 2005-11-05 03:43:28
|
SXQgcmVnaXN0ZXJzIHRoZSBTUEtJIGNyeXB0b2dyYXBoaWMgcHJvdmlkZXIgd2l0aCB0aGUgSmF2 YSBydW50aW1lLiAKVGhlIEtleVBhaXJGYWN0b3J5IGNyZ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+/vdi177+92Y3YqO+/vdip2ZEg 77+977+92KfZge+/vdmG2Kfvv70g2KXvv73ZhO+/ve+/vdinINmB77+92YHvv73Zhe+/vSDZhu+/ vdil77+92YTvv73vv73vv73YpyDYpe+/vdmB77+92Y3vv73Zhe+/vSDYse+/vdin2Kzvv73YutmG 2YTvv70KPiDYo++/vdmG2YHvv73vv73Ypu+/ve+/ve+/vSDYuu+/vdmB77+92Y3vv73Zhe+/vdmD 77+9INi177+92YHvv73Zhu+/vdin2KrZkSDZg++/ve+/vdmEINix77+977+92Kjvv73vv73Zhe+/ vdmD77+9INmG77+92LHvv73Yre+/vdmD77+92KnZkSDZhu+/vdij77+92YbZge+/ve+/vdim77+9 77+977+9INmF77+92YPvv70KPiDYp9mB77+92YPvv73Zhe+/vdiq77+92K/vv73ZhtmEIiDYp9mB 2Kjvv73YsdipIDE1NS0gMTU3Cj4KPiAgX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18K PiAgWWFob28hIEZhcmVDaGFzZSAtIFNlYXJjaCBtdWx0aXBsZSB0cmF2ZWwgc2l0ZXMgaW4gb25l IGNsaWNrLgo+Cj4KCgotLQpTYW1lZXIKaHR0cDovL2FqbWFuaS5uZXQK |
From: Somaya A. <som...@ya...> - 2006-01-05 07:32:05
|
Hi Sameer and everyone, Im using JSDSI with another framework (a Multiagent system framework). Agents in this framework have their own KeyPairs. Whenever I try to use those KeyPairs to create or sign certificates using JSDSI I got an exception. While if I used JSDSI with KeyPairs generated by JSDSI I got no exceptions So, would you plz help me to figure out the problem? Thanks in advance, Somaya __________________________________________ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com |