On 2015-01-22 11:47 AM, Derek Wueppelmann wrote: > I've been working on a application using the openpgp.js set of tools and > I've come up to a roadblock. I was wondering if the openpgp.js library > provided a way to sign a public key? For example I have my key pair all > setup. Can I sign a public key that's been provided to me using this > library? If so where would I find examples/documentation about this? So I've spent a bit of time trying to figure this one out. I would appreciate any help here, I wouldn't even mind contributing back to the project whatever I end up completing. So far I have come up with the following (which I'm assuming is almost surely the wrong way to do things):
* Unlock the primary key using the passphrase * Get the public key you want to sign. * sign the item using the clearSignMessage method on openpgp.msg * Take the signature packet and add it to the list of otherCertifications for each user in the key to sign. Like I said, this is almost assuredly wrong, but it's gotten me to a point I can continue with what I need to do for now. If anybody can point me to some pseudo code or anything that would outline the correct way to sign a public key such that it could then be uploaded to a keyserver or passed back to the original user that would be great. -- o) Derek Wueppelmann (o (D . [email protected] D). ((` http://www.monkeynet.ca ( ) ` -- BEGIN-ANTISPAM-VOTING-LINKS ------------------------------------------------------ Teach CanIt if this mail (ID 02NS2wg0w) is spam: Spam: http://canit.monkeynet.ca/canit/b.php?i=02NS2wg0w&m=0901cc35fb09&t=20150218&c=s Not spam: http://canit.monkeynet.ca/canit/b.php?i=02NS2wg0w&m=0901cc35fb09&t=20150218&c=n Forget vote: http://canit.monkeynet.ca/canit/b.php?i=02NS2wg0w&m=0901cc35fb09&t=20150218&c=f ------------------------------------------------------ END-ANTISPAM-VOTING-LINKS _______________________________________________ http://openpgpjs.org Subscribe/unsubscribe: http://list.openpgpjs.org

