Skip to main content

Posts

Command to generate the PFX from crt and pem

  C:\Windows\System32>cd C:\Program Files\OpenSSL-Win64\bin C:\Program Files\OpenSSL-Win64\bin>openssl pkcs12 -inkey pkey.pem -in cert.crt -export -out bob_pfx.pfx Could not read private key from -inkey file from pkey.pem C:\Program Files\OpenSSL-Win64\bin>openssl pkcs12 -inkey pkey.pem -in genus.cer -export -out bob_pfx.pfx Could not read private key from -inkey file from pkey.pem C:\Program Files\OpenSSL-Win64\bin>openssl pkcs12 -inkey pkey1.pem -in cert.crt -export -out bob_pfx.pfx Enter Export Password: Verifying - Enter Export Password: C:\Program Files\OpenSSL-Win64\bin>
Recent posts

SOLID Principles

Understanding SOLID Principles   S : Single responsibility principle  Each software module should have one and only one reason to change. https://dotnettutorials.net/lesson/single-responsibility-principle/ O : Open/Closed Principle Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification. https://dotnettutorials.net/lesson/open-closed-principle/ L : Liskov Substitution Principle Subtypes must be substitutable for their base type. https://dotnettutorials.net/lesson/liskov-substitution-principle/ I : Interface Segregation Principle :  Clients should not be forced to depend on methods they do not use. https://dotnettutorials.net/lesson/interface-segregation-principle/ D : Dependency Inversion Principle High-level modules should not depend on low-level modules. Both should depend on abstraction https://dotnettutorials.net/lesson/dependency-inversion-principle/

10 Common Software Architectural Patterns in a nutshell

https://towardsdatascience.com/10-common-software-architectural-patterns-in-a-nutshell-a0b47a1e9013

Disabling emails in Debug Mode Aspnetzero

I had this issue and just assumed the code was there for looks but didnt actually work (Meaning the only thing it did was show "test email sent" but no backend code did anything) After maliming's comment I realized it wasnt just me. I started checking what the log said as he mentioned and log mentioned: INFO [35 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO [35 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO [35 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'companyName.Configuration.Host.HostSettingsAppService.SendTestEmail (companyName.Application)' INFO [35 ] c.Infrastructure.ControllerActionInvoker - Route matched with {area = "app", action = "SendTestEmail", controller = "HostSettings"}. Executing controller action with signature System.Threading.Tasks.Task SendTestEmail(companyName.Configuration.Host.Dto.SendTestEmailIn...

Import/Export Websites from IIS

  In order to perform this action, there are a few steps to take.  App pools are separate from the site, so first we will need to save off the app pools and bring that over to our other server and load it in. To export app pools, please run the following from an elevated command prompt: %windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml It will look like this, with the file generated where you want to specify it. Next, you'll want to export your entire default web site, so we can get each individual realm configuration.  We do this by another command of similar fashion. Please run this command on the same elevated prompt: %windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml It will look something like this, with again, the file where you specify it. Once you have exported your configuration, it is time to move these two xml files over to your other server, and run these two commands to load in these app pools and defa...