Hi Bob, is there anything else you (or the team) needs to know in order to investigate this further? Also as said, if a HSM is an issue, we will be more than happy to provide the necessary ressources.
kind regards Andreas Kroehnert Telephone: +44-1276-608046 - Mobile: +44-7852-925958 > -----Original Message----- > From: dev-tech-crypto-bounces+andreas.kroehnert=de.safenet- > [email protected] [mailto:dev-tech-crypto- > [email protected]] On > Behalf Of Kroehnert, Andreas > Sent: 28 October 2009 16:31 > To: mozilla's crypto code discussion list > Cc: Lewis,Bill; Vikram Sharma (viksharm); Robert Lerche -X (rlerche - > SimpliOn Technologies at Cisco) > Subject: RE: reopen bug 374247 - disable slots/modules > > Hi Bob, > > okay let me explain more in detail. > > Ultimately we are running Apache2 with mod_nss utilising NSS and in the > end a HSM. That all runs fine so no issue here. > > However the HSM supports to have multiple slots. Each slot can serve a > different purpose, basically its all about logical separation. Our > problem is that whenever you start up apache2 with mod_nss it is > enumerating to the available enabled slots. Which we don't want to do > as some slots are for a different more sensitve applications and should > not be opened for the SSL communication. So we're not expecting it to > disappear, but not be used for any operation, means enumeration of > available tokens. > > So we were trying to apply "modutil -disable" to all various > combinations of just the module and/or slots. But a consecutive > "modutil -list" still shows the module as enabled. > > The other way around by modifying the slot structure that is applied > while adding a module, so every slot is disabled by default and then > enabling aparticular one does not help either. > > Our observation shows that when the disable option is applied secmod.db > gets modified. Also a list option seems to read the necessary values > from the secmod.db. But somehwhere the relation of slot->disabled == > PR_FALSE is lost. > > See below some example of what we do, as you can see the status stays > enabled, regardless of how we do a disable. May be we're just doing > something different than expected. So any help or advise is > appreciated. > > > [r...@rhel-as5]# modutil -list -dbdir /opt/hsmnssdb/ > > Listing of PKCS #11 Modules > ----------------------------------------------------------- > 1. NSS Internal PKCS #11 Module > slots: 2 slots attached > status: loaded > > slot: NSS Internal Cryptographic Services > token: NSS Generic Crypto Services > > slot: NSS User Private Key and Certificate Services > token: NSS Certificate DB > > 2. HSM > library name: /opt/PTK/lib/libcryptoki.so > slots: 2 slots attached > status: loaded > > slot: ProtectServer Gold:36016 > token: test > > slot: ProtectServer Gold > token: AdminToken (92405881) > ----------------------------------------------------------- > [r...@rhel-as5]# modutil -list -dbdir /opt/hsmnssdb/ > > ----------------------------------------------------------- > Name: HSM > Library file: /opt/PTK/lib/libcryptoki.so > Manufacturer: Safenet, Inc. > Description: ProtectServer Gold > PKCS #11 Version 2.10 > Library Version: 3.32 > Cipher Enable Flags: None > Default Mechanism Flags: None > > Slot: ProtectServer Gold:36016 > Slot Mechanism Flags: None > Manufacturer: SafeNet Inc. > Type: Hardware > Version Number: 66.0 > Firmware Version: 2.7 > Status: Enabled > Token Name: test > Token Manufacturer: SafeNet Inc. > Token Model: PSG:PL25 > Token Serial Number: 92405881:36016 > Token Version: 66.0 > Token Firmware Version: 2.7 > Access: NOT Write Protected > Login Type: Login required > User Pin: Initialized > > Slot: ProtectServer Gold > Slot Mechanism Flags: None > Manufacturer: SafeNet Inc. > Type: Hardware > Version Number: 66.0 > Firmware Version: 2.7 > Status: Enabled > Token Name: AdminToken (92405881) > Token Manufacturer: SafeNet Inc. > Token Model: PSG:PL25 > Token Serial Number: 92405881 > Token Version: 66.0 > Token Firmware Version: 2.7 > Access: NOT Write Protected > Login Type: Login required > User Pin: Initialized > > ----------------------------------------------------------- > [r...@rhel-as5]# modutil -disable HSM -dbdir /opt/hsmnssdb/ -nocertdb > > WARNING: Performing this operation while the browser is running could > cause corruption of your security databases. If the browser is > currently running, you should exit browser before continuing this > operation. Type 'q <enter>' to abort, or <enter> to continue: > > Slot "ProtectServer Gold:36016" disabled. > Slot "ProtectServer Gold" disabled. > [r...@rhel-as5]# modutil -list HSM -dbdir /opt/hsmnssdb/ > > ----------------------------------------------------------- > Name: HSM > Library file: /opt/PTK/lib/libcryptoki.so > Manufacturer: Safenet, Inc. > Description: ProtectServer Gold > PKCS #11 Version 2.10 > Library Version: 3.32 > Cipher Enable Flags: None > Default Mechanism Flags: None > > Slot: ProtectServer Gold:36016 > Slot Mechanism Flags: None > Manufacturer: SafeNet Inc. > Type: Hardware > Version Number: 66.0 > Firmware Version: 2.7 > Status: Enabled > Token Name: test > Token Manufacturer: SafeNet Inc. > Token Model: PSG:PL25 > Token Serial Number: 92405881:36016 > Token Version: 66.0 > Token Firmware Version: 2.7 > Access: NOT Write Protected > Login Type: Login required > User Pin: Initialized > > Slot: ProtectServer Gold > Slot Mechanism Flags: None > Manufacturer: SafeNet Inc. > Type: Hardware > Version Number: 66.0 > Firmware Version: 2.7 > Status: Enabled > Token Name: AdminToken (92405881) > Token Manufacturer: SafeNet Inc. > Token Model: PSG:PL25 > Token Serial Number: 92405881 > Token Version: 66.0 > Token Firmware Version: 2.7 > Access: NOT Write Protected > Login Type: Login required > User Pin: Initialized > > ----------------------------------------------------------- > [r...@rhel-as5]# modutil -disable HSM -dbdir /opt/hsmnssdb/ -nocertdb - > slot "ProtectServer Gold" > > WARNING: Performing this operation while the browser is running could > cause corruption of your security databases. If the browser is > currently running, you should exit browser before continuing this > operation. Type 'q <enter>' to abort, or <enter> to continue: > > Slot "ProtectServer Gold" disabled. > [r...@rhel-as5 nss]# modutil -list HSM -dbdir /opt/hsmnssdb/ > > ----------------------------------------------------------- > Name: HSM > Library file: /opt/PTK/lib/libcryptoki.so > Manufacturer: Safenet, Inc. > Description: ProtectServer Gold > PKCS #11 Version 2.10 > Library Version: 3.32 > Cipher Enable Flags: None > Default Mechanism Flags: None > > Slot: ProtectServer Gold:36016 > Slot Mechanism Flags: None > Manufacturer: SafeNet Inc. > Type: Hardware > Version Number: 66.0 > Firmware Version: 2.7 > Status: Enabled > Token Name: test > Token Manufacturer: SafeNet Inc. > Token Model: PSG:PL25 > Token Serial Number: 92405881:36016 > Token Version: 66.0 > Token Firmware Version: 2.7 > Access: NOT Write Protected > Login Type: Login required > User Pin: Initialized > > Slot: ProtectServer Gold > Slot Mechanism Flags: None > Manufacturer: SafeNet Inc. > Type: Hardware > Version Number: 66.0 > Firmware Version: 2.7 > Status: Enabled > Token Name: AdminToken (92405881) > Token Manufacturer: SafeNet Inc. > Token Model: PSG:PL25 > Token Serial Number: 92405881 > Token Version: 66.0 > Token Firmware Version: 2.7 > Access: NOT Write Protected > Login Type: Login required > User Pin: Initialized > > ----------------------------------------------------------- > > > kind regards > Andreas Kroehnert > Telephone: +44-1276-608046 - Mobile: +44-7852-925958 > > > > -----Original Message---- > > From: dev-tech-crypto-bounces+andreas.kroehnert=de.safenet- > > [email protected] [mailto:dev-tech-crypto- > > [email protected]] On > > Behalf Of Robert Relyea > > Sent: 28 October 2009 15:43 > > To: mozilla's crypto code discussion list > > Cc: Lewis,Bill; Vikram Sharma (viksharm); Robert Lerche -X (rlerche - > > SimpliOn Technologies at Cisco) > > Subject: Re: reopen bug 374247 - disable slots/modules > > > > On 10/28/2009 03:08 PM, Kroehnert, Andreas wrote: > > > Hello, > > > > > > this is in reference to Message ID - > > [email protected]<mailto:- > > [email protected]> on > > mozilla.dev.tech.crypto. > > > > > > We have issues to disable a whole adapter or just a single slot > > > using > > modutil and a SafeNet ProtectServer HSM. > > What do you mean? Disable does not mean 'make it disappear'. It means > > don't use any of it's features. Such tokens still show up in UI lists > > of all tokens (so the UI has the opportunity to explain *why* it's > > disabled, and allow the user to take corrective action). If you > > disable a token, for instance, you should still expect that token to > > show up in modutil lists or firefox device lists. If that token has > > certs, however, certutil -h all should not list those certs, nor > > should there be pin prompts for any disabled tokens. > > > > There is no way, currently, to disable a whole module (other then > just > > removing it). > > > Also the default soft tokens of NSS itself can not be disabled. > > > > > Disabling softoken itself is not supported. It is possible to overide > > most uses of softoken, but NSS depends of the fact that there is a > > token which provides known semantics that it can always fall back on. > > > > If you want to override softoken, the best way to do that is to do > the > > following: > > > > 1) Make sure your token supports all the same mechanisms as softoken > > does (including all the SSL macing and key derivation). > > 2) Make sure the target keys and certs are in your token > (particularly > > important for servers, where the private key for the server lives > > determines where the SSL operations need to start). > > 3) Make your token the default 'provider' of all the mechanisms (with > > the -mechanisms option). > > > > softoken is always last on the list of these providers, so overriding > > them should cause your token to be selected whenever there's a > request > > to do a particular operation. The one exception is if the operation > > involves a pre-existing key. In that case that key is used in place > > until NSS encounters an operation that the token which houses the key > > can't do. This is why both steps 1 and 2 are important. > > > > Note: like disable, step 3 really applies to actual tokens, not to > the > > module itself. Applying it to the module simply applies it to all the > > present slots on the module. > > > The target platform is RedHat Enterprise Server 5.4. NSS is at > > version 3.12.4 with NSPR 4.8. Own investigations on the NSS source > > code did not reveal any obvious issues. > > > > > > Question is what would be required to get this resolved? SafeNet > > would also be happy to either share access to a remote system with an > > HSM installed or provide a test unit to the development team. > > > > > First we need to understand exactly what is failing. > > > > BTW thanks for the time you've been spending looking at these issues > > and bringing them to our attention. > > > > bob > > > > ______________________________________________________________ > > The information contained in this electronic mail transmission may be > privileged and confidential, and therefore, protected from disclosure. > If you have received this communication in error, please notify us > immediately by replying to this message and deleting it from your > computer without copying or disclosing it. > ______________________________________________________________ > > SafeNet UK Ltd. ? Registered Office: Rivercourt, 3 Meadows Business > Park, Station Approach, Blackwater, Camberley, Surrey, > GU17 9AB. Registered in England ? Number 02258824 > ______________________________________________________________ The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it. ______________________________________________________________ SafeNet UK Ltd. Registered Office: Rivercourt, 3 Meadows Business Park, Station Approach, Blackwater, Camberley, Surrey, GU17 9AB. Registered in England Number 02258824
-- dev-tech-crypto mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-crypto

