Automating Certificate setup?

    • OMV 4.x (testing)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Automating Certificate setup?


      I'm trying to create a script which setups the basics of OMV for me and can't quite figure out how to do the certificate setup with "omv-confdbadm update conf.system.certificate.ssl"

      I keep getting various python exceptions like:

      Source Code

      1. Traceback (most recent call last):
      2. File "/usr/sbin/omv-confdbadm", line 66, in <module>
      3. sys.exit(main())
      4. File "/usr/sbin/omv-confdbadm", line 63, in main
      5. return cmd_inst.execute(*sys.argv)
      6. File "/usr/share/openmediavault/confdbadm/commands.d/", line 50, in execute
      7. db.set(obj)
      8. File "/usr/lib/python3/dist-packages/openmediavault/config/", line 280, in set
      9. query.execute()
      10. File "/usr/lib/python3/dist-packages/openmediavault/config/", line 748, in execute
      11. self.xpath, self.object.model)
      12. openmediavault.config.database.DatabaseQueryNotFoundException: No such object: //system/certificates/sslcertificate[uuid='45d63b9f-a61c-49d2-a5dd-425d60212532']
      13. Traceback (most recent call last):
      14. File "/usr/sbin/omv-confdbadm", line 66, in <module>
      15. sys.exit(main())
      16. File "/usr/sbin/omv-confdbadm", line 63, in main
      17. return cmd_inst.execute(*sys.argv)
      18. File "/usr/share/openmediavault/confdbadm/commands.d/", line 50, in execute
      19. db.set(obj)
      20. File "/usr/lib/python3/dist-packages/openmediavault/config/", line 280, in set
      21. query.execute()
      22. File "/usr/lib/python3/dist-packages/openmediavault/config/", line 748, in execute
      23. self.xpath, self.object.model)
      24. openmediavault.config.database.DatabaseQueryNotFoundException: No such object: //system/certificates/sslcertificate[uuid='']
      Display All
      Has anyone gotten omv-confdbadm with certificates to work?