Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
How can I import from the cli an externally generated SSL certificate?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How can I import from the cli an externally generated SSL certificate? (Read 742 times)
sja1440
Jr. Member
Posts: 86
Karma: 6
How can I import from the cli an externally generated SSL certificate?
«
on:
March 08, 2024, 04:01:12 pm »
Using the CLI, is it possible to import an externally generated SSL certificate for use in System: Settings: Administration->SSL Certificate?
I have looked but I cannot find an API endpoint to do this.
Since I believe that the certificates used by the GUI are kept in the conf.xml, maybe there any some specialised OPNsense shell commands that could be used to manipulate the certificate nodes in the xml? If so what are they? (I do not want to manipulate directly the xml).
Can somebody suggest a way of doing this?
Logged
0zzy
Full Member
Posts: 127
Karma: 3
Re: How can I import from the cli an externally generated SSL certificate?
«
Reply #1 on:
March 08, 2024, 04:21:36 pm »
Take a look in
https://forum.opnsense.org/index.php?topic=15139.msg69118#msg69118
eventually it solved your problem.
Logged
Protectli FW4B
Intel J6412 4 cores
4x Intel I225-V 2,5 Gbit/s
16 GB memory
480 GB m.2 SATA SSD storage
Coreboot
sja1440
Jr. Member
Posts: 86
Karma: 6
Re: How can I import from the cli an externally generated SSL certificate?
«
Reply #2 on:
March 08, 2024, 04:33:10 pm »
Thanks for the suggestion, but as I said I do not wish to manipulate directly config.xml because that is in internal file and who knows how it is used internally by OPNsense.
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: How can I import from the cli an externally generated SSL certificate?
«
Reply #3 on:
March 08, 2024, 06:36:10 pm »
wait for
https://github.com/opnsense/core/issues/7248
maybe?)
Logged
sja1440
Jr. Member
Posts: 86
Karma: 6
Re: How can I import from the cli an externally generated SSL certificate?
«
Reply #4 on:
March 08, 2024, 06:51:11 pm »
Thankyou. That's good news. So that's what "system: move Trust section to MVC/API" meant!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
How can I import from the cli an externally generated SSL certificate?