Work around for "PKCS #11 module returned CKR_DEVICE_ERROR"

Something must be doing a fork somewhere which is causing the
tokens to be reset. This will work around the issue for now.

Change-Id: I2f6b3ff26e49114e730a3d2f36d7771d6c08d049
This commit is contained in:
Rob Crittenden 2017-02-10 11:40:39 -05:00
parent 12dfff8aa6
commit f2727327bd
1 changed files with 3 additions and 0 deletions

View File

@ -14,9 +14,12 @@
# under the License.
import sys
import os
from novajoin.wsgi import main
if __name__ == "__main__":
# rcrit: work around "PKCS #11 module returned CKR_DEVICE_ERROR"
os.environ['NSS_STRICT_NOFORK'] = 'DISABLED'
sys.exit(main())