Java

Resolving “module java.base does not export sun.security.x509” Error

When working with Java applications, you may encounter the following error like I did: This issue arises because your code is attempting to use the internal sun.security.x509.X500Name class. Starting with Java 9, the Java Platform Module System (JPMS) restricts access to internal APIs such as sun.security.*, making them inaccessible unless explicitly allowed. Why This Happens…

Java

Enabling CORS in Spring

There are multiple ways to enable CORS in Spring Boot. Enable CORS Globally To apply CORS settings to all endpoints in your Spring application, you can use the WebMvcConfigurer interface. Enable CORS for Specific Endpoints You can use the @CrossOrigin annotation to enable CORS for specific controllers or methods. This approach is ideal if you…

aws

Summary AWS Security and Encryption

This blog is a part of my journey “Embarking on the AWS Solution Architect Associate SAA-CO3 Certification Journey” Table of Content Types of Encryption Encryption in flight Server side encryption at rest Client side encryption AWS KMS KMS Key Policies Copying Encrypted Snapshots across accounts KMS Multi-Region Keys SSM Parameter Store Standard and advanced parameter tiers…