Re: Request restoration of PK11_SetPublicKeyNickname and PK11_SetPrivateKeyNickname

2014-10-07 Thread Sean Leonard
PK11_ReadRawAttribute and PK11_WriteRawAttribute would probably work. Unfortunately, they are also not exported. :( http://mxr.mozilla.org/mozilla-beta/search?string=PK11_WriteRawAttribute&find=nss http://mxr.mozilla.org/mozilla-beta/source/security/build/nss.def Sean On 10/7/2014 1:23 AM, he

Re: Request restoration of PK11_SetPublicKeyNickname and PK11_SetPrivateKeyNickname

2014-10-07 Thread Sean Leonard
On 10/7/2014 1:20 AM, helpcrypto helpcrypto wrote: On Tue, Oct 7, 2014 at 10:02 AM, Sean Leonard wrote: Thanks, but the need is to change the nickname. It is displayed in Mozilla apps for various purposes. The nickname is also known as the "friendly name" on other platforms (e.g., MS CryptoAPI

Re: Request restoration of PK11_SetPublicKeyNickname and PK11_SetPrivateKeyNickname

2014-10-07 Thread helpcrypto helpcrypto
As NSS doesnt expose that function (IMHO it Should), couldnt you use PK11_Read/WriteRawAttribute? (Apart this should being fixed or not) On Tue, Oct 7, 2014 at 10:20 AM, helpcrypto helpcrypto wrote: > On Tue, Oct 7, 2014 at 10:02 AM, Sean Leonard > wrote: > >> Thanks, but the need is to change

Re: Request restoration of PK11_SetPublicKeyNickname and PK11_SetPrivateKeyNickname

2014-10-07 Thread helpcrypto helpcrypto
On Tue, Oct 7, 2014 at 10:02 AM, Sean Leonard wrote: > Thanks, but the need is to change the nickname. It is displayed in Mozilla > apps for various purposes. The nickname is also known as the "friendly > name" on other platforms (e.g., MS CryptoAPI) and in other standards (e.g., > PKCS #9). > >

Re: Request restoration of PK11_SetPublicKeyNickname and PK11_SetPrivateKeyNickname

2014-10-07 Thread Sean Leonard
Thanks, but the need is to change the nickname. It is displayed in Mozilla apps for various purposes. The nickname is also known as the "friendly name" on other platforms (e.g., MS CryptoAPI) and in other standards (e.g., PKCS #9). The nickname is the CKA_LABEL (0x0003) attribute. That is

Re: Request restoration of PK11_SetPublicKeyNickname and PK11_SetPrivateKeyNickname

2014-10-07 Thread helpcrypto helpcrypto
IIRC, nicknames aren't part of PKCS#11 standard, so i would suggest instead using CKA_ID (hash of public key; certificate, public and private keys have the same) On Tue, Oct 7, 2014 at 9:15 AM, Sean Leonard wrote: > Hi Mozilla/Firefox crypto people: > > In Firefox 33 (and generally Mozilla toolk

Request restoration of PK11_SetPublicKeyNickname and PK11_SetPrivateKeyNickname

2014-10-07 Thread Sean Leonard
Hi Mozilla/Firefox crypto people: In Firefox 33 (and generally Mozilla toolkit apps, including Thunderbird) on Windows, it appears that nss3.dll is folded and only a subset of functions are exposed. See . Among the functions