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


-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to