[Bug 1905473] [NEW] NSS DB can't be created with barbican stein

2020-11-24 Thread Jan Wasilewski
Public bug reported: During integration barbican with dogtag, I faced an issue that NSS DB is not possible to be created during first request. It seems that file which has to be temporarly created for storing NSS DB password, has some troubles during creation. A part of failing code is: https://ra

[Bug 1905473] Re: NSS DB can't be created with barbican stein

2020-11-27 Thread Jan Wasilewski
After some troubleshooting, we found a nice solution for this bug, which is transforming password to string with utf-8 as below: def setup_database( db_dir, password=None, over_write=False, password_file=None): """ Create an NSS database """ if os.path.exists(db_dir