Open Closed

Run authserver locally without certificates #9471


User avatar
0
rachlauer created

Is it possible to run AuthServer locally without a certificate?


1 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    To run the AuthServer locally without requiring a certificate, you can disable the HTTPS metadata requirement in your configuration. This allows the server to accept HTTP requests and operate without a certificate for development purposes.

    1. In your appsettings.json (AuthServer project), set:

      "AuthServer": {
        "Authority": "http://localhost:PORT",
        "RequireHttpsMetadata": "false"
      }
      
    2. In your AuthServer's ConfigureServices method, add:

      if (!Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]))
      {
          Configure<OpenIddictServerAspNetCoreOptions>(options =>
          {
              options.DisableTransportSecurityRequirement = true;
          });
      }
      

    This configuration disables the HTTPS requirement, allowing you to run AuthServer locally without a certificate.

    Sources:

    • https://abp.io/docs/latest/solution-templates/layered-web-application/deployment/openiddict-deployment

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 08, 2026, 13:10
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.