Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fortios.rb to remove additional secrets #3007

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

codejake
Copy link
Contributor

@codejake codejake commented Dec 14, 2023

"config system acme" uses "set privatekey" instead of the usual "set private-key" stanza on 7.0.x (tested on 7.0.13).

Pre-Request Checklist

  • Passes rubocop code analysis (try rubocop --auto-correct)
  • Tests added or adapted (try rake test)
  • Changes are reflected in the documentation
  • User-visible changes appended to CHANGELOG.md

Description

"config system acme" uses "set privatekey" instead of the usual "set private-key" stanza on 7.0.x (tested on 7.0.13).
@codejake
Copy link
Contributor Author

Example config snippet from FortiOS 7.0.13:

config system acme
    set interface "port30"
    set source-ip 0.0.0.0
    set source-ip6 ::
    config accounts
        edit "ACME-.letsencrypt.org-0000"
            set status "valid"
            set url "https://acme-v02.api.letsencrypt.org/acme/acct/829626287"
            set ca_url "https://acme-v02.api.letsencrypt.org/directory"
            set email "jake@nobody.com"
            set privatekey "-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIHbTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BQQwwHAQI9fFXTPkTat8CAggA
MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBA2B0dIE1D8JFIbwRo5a9KXBIIH

@codejake codejake changed the title Update fortios.rb Update fortios.rb to remove additional secrets Dec 14, 2023
@robertcheramy robertcheramy merged commit da7e742 into ytti:master Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants