core
core copied to clipboard
IPsec public keys: provide generation function within GUI
Provide a "Generate" button in the IPsec RSA keys dialog to generate public/private keys:
Proposals for a better/different user interface are welcome...
@8191 it might also be an option to only add a drop down "generate new key", which by default is set to no, otherwise is using the key size. In which case you can move the responsibility to the controller and keep the frontend implementation simpler.
@AdSchellevis Thanks for the review, I've incorporated your comments.
Regarding the UI part: yes, having it in the controller might be better from a design point of view, but the downside is, that the user needs to reopen the already closed edit window to see the generated key (which he needs to distribute very likely).
https://github.com/opnsense/core/commit/e395da80b2f2f1d659413030bff6d1b0bcad4f05