Skip to content

Conversation

@leefine02
Copy link
Collaborator

No description provided.

@indrora indrora self-assigned this Nov 19, 2025
@spbsoluble spbsoluble requested a review from Copilot November 19, 2025 21:10
Copilot finished reviewing on behalf of spbsoluble November 19, 2025 21:13
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for renewing certificates bound to the HTTPS server in Fortigate, expanding the existing capability to manage bound certificates. The implementation adds new API endpoints to check and update HTTPS server bindings, ensuring certificate replacements maintain service continuity.

  • Added HTTPS server certificate binding support to complement existing VPN certificate management
  • Upgraded BouncyCastle.Cryptography from v2.0.0 to v2.6.2
  • Enhanced documentation with improved formatting, corrected spelling, and clearer instructions for store type creation and certificate store management

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Fortigate/FortigateStore.cs Added HttpsServerUsage() and UpdateHttpsServerUsage() methods to query and update HTTPS server certificate bindings; updated Insert() method to handle HTTPS certificate replacement
Fortigate/Api/HttpsUsage.cs New API model classes (HttpsUsage, HttpUsageRequest, OriginKey) for HTTPS server certificate binding operations
Fortigate/Fortigate.csproj Updated BouncyCastle.Cryptography package reference from v2.0.0 to v2.6.2
README.md Documented new HTTPS certificate binding support; improved formatting and organization of store type creation and store creation sections; corrected spelling errors
docsource/content.md Added documentation for HTTPS and VPN certificate binding limitations
CHANGELOG.md Added v1.3.0 entry documenting HTTPS server certificate renewal support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

//limitations under the License.

using Newtonsoft.Json;
using System.Text.Json.Serialization;
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file uses both Newtonsoft.Json (line 14) and System.Text.Json.Serialization (line 15) namespaces, but only Newtonsoft.Json attributes are actually used in the code. The System.Text.Json.Serialization import is unnecessary and should be removed to maintain consistency with other API classes in the codebase (which use only Newtonsoft.Json).

Suggested change
using System.Text.Json.Serialization;

Copilot uses AI. Check for mistakes.
using System.Text;
using System.Net.Http.Headers;
using Microsoft.Extensions.Logging;
using Org.BouncyCastle.Asn1.Ocsp;
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The imported namespace Org.BouncyCastle.Asn1.Ocsp appears to be unused. Consider removing this import as it's not referenced anywhere in the code.

Suggested change
using Org.BouncyCastle.Asn1.Ocsp;

Copilot uses AI. Check for mistakes.
@spbsoluble spbsoluble merged commit e052b1a into release-1.3 Nov 20, 2025
@spbsoluble spbsoluble deleted the ab#77142 branch November 20, 2025 21:42
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.

4 participants