Uploaded image for project: 'Network Controller'
  1. Network Controller
  2. SDNC-1150

SDNC installCerts.py script failed to convert keystore.jks/truststore.jks to keystore.p12/truststore.p12 at time of execution.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Frankfurt Release
    • Frankfurt Release
    • None

      At Present there is No test case to validate if Certificates received form External CA (EJBCA) are properly processed by SDNC during startup.

      As  part of adding code for E2E Test-case  https://jira.onap.org/browse/INT-1295 (E2E integration test for NETCONF/TLS configuration) while testing found issue with installCerts.py Script which is failing to convert keystore.jks/truststore.jks to keystore.p12/truststore.p12 at time of Execution.

       

      Exception thrown at time of execution:

      bash-4.4$ python installCerts.py
      Importing keystore /tmp/truststore.jks to /tmp/truststore.p12...
      Entry for alias trusted-certificate-1 successfully imported.
      Import command completed: 1 entries successfully imported, 0 entries failed or cancelled
      Importing keystore /tmp/keystore.jks to /tmp/keystore.p12...
      keytool error: java.io.IOException: keystore password was incorrect
      Error opening input file /tmp/keystore.p12
      /tmp/keystore.p12: No such file or directory
      Traceback (most recent call last):
      File "installCerts.py", line 334, in <module>
      readCertProperties()
      File "installCerts.py", line 331, in readCertProperties
      look_for_jks_files()
      File "installCerts.py", line 301, in look_for_jks_files
      cleanup()
      File "installCerts.py", line 237, in cleanup
      os.remove(file)

       

            ajay_dp001 ajay_dp001
            ajay_dp001 ajay_dp001
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: