Activities of "bellajyrinurmi"

Hi,

Signing Certificate couldn't found: openiddict.pfx

You should put the openiddict.pfx in the right place.

try

 
PreConfigure<OpenIddictServerBuilder>(serverBuilder => 
{ 
    serverBuilder.AddSigningCertificate(GetSigningCertificate(hostingEnvironment, configuration)); 
    serverBuilder.AddEncryptionCertificate(GetSigningCertificate(hostingEnvironment, configuration)); 
}); 
 
private X509Certificate2 GetSigningCertificate(IWebHostEnvironment hostingEnv, IConfiguration configuration) 
{ 
    var fileName = "authserver.pfx"; 
    var passPhrase = "a0166a3a-5ffb-4f53-a8d7-a699d3c3ce1e"; 
    var file = Path.Combine(hostingEnv.ContentRootPath, fileName); 
 
    if (!File.Exists(file)) 
    { 
        throw new FileNotFoundException($"Signing Certificate couldn't found: {file}"); 
    } 
 
    return new X509Certificate2(file, passPhrase); 
} 

i change it to: ` public override void PreConfigureServices(ServiceConfigurationContext context) { var hostingEnvironment = context.Services.GetHostingEnvironment(); var configuration = context.Services.GetConfiguration();

    var tenantUrl = "https://{0}." + configuration["App:TenantUrl"];
    PreConfigure<AbpOpenIddictWildcardDomainOptions>(options =>
    {
        options.EnableWildcardDomainSupport = true;
        options.WildcardDomainsFormat.Add(tenantUrl);
    });

    context.Services.PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options =>
    {
        options.AddAssemblyResource(
            typeof(AlMudirResource),
            typeof(AlMudirDomainModule).Assembly,
            typeof(AlMudirDomainSharedModule).Assembly,
            typeof(AlMudirApplicationModule).Assembly,
            typeof(AlMudirApplicationContractsModule).Assembly,
            typeof(AlMudirBlazorModule).Assembly
        );
    });

    PreConfigure<OpenIddictBuilder>(builder =>
    {
        builder.AddValidation(options =>
        {
            options.AddAudiences("AlMudir");
            options.UseLocalServer();
            options.UseAspNetCore();
        });
    });

    if (!hostingEnvironment.IsDevelopment())
    {
        PreConfigure<AbpOpenIddictAspNetCoreOptions>(options =>
        {
            options.AddDevelopmentEncryptionAndSigningCertificate = false;
        });

        PreConfigure<OpenIddictServerBuilder>(serverBuilder =>
        {
            serverBuilder.AddSigningCertificate(GetSigningCertificate(hostingEnvironment, configuration));
            serverBuilder.AddEncryptionCertificate(GetSigningCertificate(hostingEnvironment, configuration));
            /* serverBuilder.AddProductionEncryptionAndSigningCertificate(
                "/app/openiddict.pfx", 
                "a0166a3a-5ffb-4f53-a8d7-a699d3c3ce1e"
            ); */
        });
    }
}

private X509Certificate2 GetSigningCertificate(IWebHostEnvironment hostingEnv, IConfiguration configuration)
{
    var fileName = "authserver.pfx";
    var passPhrase = "a0166a3a-5ffb-4f53-a8d7-a699d3c3ce1e";
    var file = Path.Combine(hostingEnv.ContentRootPath, fileName);

    if (!File.Exists(file))
    {
        throw new FileNotFoundException($"Signing Certificate couldn't found: {file}");
    }

    return new X509Certificate2(file, passPhrase);
}`

but have still same problem

Showing 11 to 11 of 11 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.