Getting "security library: bad database" Error When Exporting Certificate from Oracle iPlanet Web Server Using pk12util

(Doc ID 1007667.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle iPlanet Web Server - Version 6.0 and later
All Platforms


In iPlanet Web Server 6.x, when using pk12util to export the server certificate and key in pkcs12 format from the web server, the following error occurs: 

# pk12util -o cert.p12 -n Server-Cert -P https-ssl-server-
pk12util: NSS_Initialize failed: security library: bad database

(for WS6.x only) The LD_LIBRARY_PATH environment variable has been set properly as follows:

# setenv LD_LIBRARY_PATH /server-root/bin/https/lib:${LD_LIBRARY_PATH}


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms