How to Install SSL Certificate in XAMPP For Local Development?

How to Install SSL Certificate in XAMPP
  • 5 min. read
  • Jun 27th, 2025
  • Technology

Setting up SSL in XAMPP ensures your local development environment mimics real-world, secure HTTPS deployments. Learning how to install SSL certificate in XAMPP is a key step to building secure web applications in a local environment. This isn’t just a best practice but often a prerequisite for enabling critical functionalities. Without HTTPS, many modern web features such as APIs, service workers, and secure cookies won’t function as intended, even in a local environment. 

With this guide, you’ll set up HTTPS using either OpenSSL or the easier and trusted mkcert utility, ensuring your development mirrors real-world conditions.

Step-by-Step Guide on How to Install SSL Certificate in XAMPP

There are two straightforward ways to get SSL running in your local XAMPP setup, using the built-in OpenSSL utility or the more user-friendly mkcert tool. Both approaches help you simulate a secure environment for development.

Using OpenSSL utility

Step 1: Create a minimal config file

Step 2: Generate the private key and certificate using the minimal config file

Step 3: Configure Apache to use the certificate

Step 4: Review SSL configuration

Step 5: Verify Apache configuration and check for syntax errors

Step 6: Restart Apache

Using mkcert utility (Recommended)

Step 1: Install mkcert by following the instructions here

Step 2: Generate the certificates

Step 3: Configure Apache to use the generated certificates

Step 4: Review and verify Apache configuration

Step 5: Restart Apache

There are a few browser APIs that require the web page to run in a secure context. For that, we need SSL. Here is how we can configure SSL for Apache in XAMPP. There are two ways to configure the SSL - either using openssl or mkcert

Using OpenSSL utility

This method works properly. However, you won’t be able to see the green padlock icon even after following the steps below. This is intended behavior. To get a green padlock without warnings, you need to add your certificate to the trusted root certificate authorities.

Step 1: Create a minimal config file

Create a new file named openssl_minimal.cnf and add the following content:

Create_a_minimal_config_file

Make sure to replace the placeholder variables with actual values

Save this file in a convenient location, such as C:\xampp\apache\conf\openssl_minimal.cnf

Step 2: Generate the private key and certificate using the minimal config file

2.1 Open terminal and navigate to the OpenSSL directory.

apache_bin

 2.2 Generate a private key. The following command will generate a private key name private.key . Feel free to use any name of your choice.

Generate_a_private_key

2.3 Create a Certificate Signing Request (CSR) file using the minimal config file created earlier. The output file name can be customized.

Certificate_Signing_Request_(CSR)_file

2.4 Generate a self-signed certificate file using the minimal config file. The parameters can be customized.

self_signed_certificate_file

Step 3: Configure Apache to use the certificate

3.1 Copy the generated files to a convenient location inside the Apache folder.

Copy_ generated_files

3.2 Open the httpd-ssl.conf file located in xampp\apache\conf\extra and update the paths.

Configure_apache

The paths are relative to the Apache installation folder.

3.3 Ensure that the following lines are un-commented in the httpd.conf file.

httpd.conf_file

Step 4: Review SSL configuration

Review the VirtualHost setup in the SSL configuration file. Here is a sample of what it might look like.

Review_SSL_configuration

Step 5: Verify Apache configuration and check for syntax errors

5.1 Navigate to xampp\apache\bin

apache_bin

5.2 Check for syntax and other configuration errors using the following command

httpd.exe-t

5.3 If everything is correct you would get the message Syntax OK

Step 6: Restart Apache

Use the XAMPP control panel to restart Apache. Now try accessing localhost via HTTPS. The browser might show a warning about the certificate being self-signed. You may ignore the warning and proceed.

Using mkcert utility (Recommended)

mkcert is a tool to make trusted certificates for local development without any configuration.

Step 1: Install mkcert 

To get started with, first install mkcert by following the instructions here.

Once mkcert is set up, run the below command to install the trusted root store.

Install_mkcert

Step 2: Generate the certificates

mkcert_localhost

The above command will generate two files - localhost.pem and localhost-key.pem

Step 3: Configure Apache to use the generated certificates

3.1 Copy the generated files to a convenient location inside the Apache folder.

copy_the_generated_files_Apache_folder

3.2 Update the httpd-ssl.conf file located in C:\xampp\apache\conf\extra

SSLCertificateFile_Apache

Step 4: Review and verify Apache configuration

Review and verify the Apache configuration using the steps mentioned above (Step 4 and Step 5 of OpenSSL installation).

Step 5: Restart Apache

Restart Apache, and you are good to go. When opened in the browser, the green padlock icon will be visible.

Summing It Up

Now you have two reliable methods to set up HTTPS in your local environment: OpenSSL for a manual approach and mkcert for a quicker, trusted solution. Understanding how to install SSL certificate in XAMPP localhost not only helps you avoid browser security warnings but also ensures that your development environment aligns with modern web standards. 

Secure by default is now the new norm, and that applies to local development too, especially for APIs and full-stack work.


Tags

  • Install SSL Certificate
  • XAMPP
  • Local Development
  • Configure SSL

Related Blogs

sundew

Blog

User Experience Design vs Interaction Design Explained: Roles, Goals, and Impact

In the world of digital product design, user experience design vs interaction design is a common debate seen today. While interaction design is all the rage now, and businesses are investing tons in the same, many fail to understand that it’s a subset of the good ol’ UX design, and not an alien concept altogether.While UX design shapes the overall journey a user takes, interaction design focuses on the finer details - how users engage with a product in real-time. As businesses strive to meet rising user expectations, understanding the synergy between UX and interaction design is crucial. Let’s dive into their differences, their roles, and why interaction design is now emerging as a game-changer, paving the way for next-level intuitive digital experiences.Interaction Design vs User Experience Design: What Is the Difference?If you are wondering what the difference is between user experience design and interaction design, the clue lies in the names. UX puts the “U” for "user" front and center. It’s all about how people feel when they interact with a product or service, with empathy being the driving force here. IxD is about interactions, not always involving a person. These could be between a user and a product, sure. But they could also happen between two systems talking to each other. Some great inter-machine uses of interaction design examples include autopilot and onboard navigation in an aircraft. IxD focuses on what happens and how it flows, whether or not a human is involved.While both interaction design (IxD) and user experience (UX) design aim to enhance how users engage with digital products, they operate simultaneously at different levels. Let’s understand each separately for better clarity on the user experience design vs interaction design debate.UX DesignThe user experience (UX) design process is all about shaping how users overall feel and interact with a product. It goes beyond aesthetics, encompassing functionality, usability, and accessibility, ensuring a seamless experience from start to finish. By blending elements like interaction design, information architecture, usability, and human-computer interaction (HCI), UX design aims to make digital products more intuitive, efficient, and enjoyable. Features:Understanding the User: Great UX design starts with a deep understanding of the user’s needs, behaviors, and challenges. Designers rely on user research, personas, and behavioral analysis to create experiences that resonate with the target audience.Data-Driven Design Decisions: Effective UX design relies on qualitative and quantitative research methods. These include usability testing, analytics, and surveys to inform design choices and optimize user interactions.Structuring Information for Clarity: UX designers organize content logically to ensure users can navigate a digital product effortlessly. Through well-planned information architecture, clear navigation systems, and intuitive wireframes, they make interactions smooth and frustration-free.Interaction Design (IxD)Interaction Design is a specialized subset of UX design that focuses specifically on the micro-level dynamic elements of a digital product. It shapes the structure and functionality of UI components like buttons, menus, forms, and transitions, creating intuitive pathways that help users achieve their goals effortlessly. Every click, swipe, hover, or animation is strategically designed to guide user behavior and enhance usability. FeaturesPutting Usability First: IxD bridges the gap between form and function. Every element, from buttons to transitions, is built to support real goals, making tasks feel seamless.Simplicity & Intuitive Navigation: The best interfaces are those that users don’t have to think about. Interaction design simplifies complexity by:Presenting information in a clear, structured wayUsing recognizable patterns and UI elementsRemoving unnecessary friction from the user journeyAdaptability Across Devices: Responsive design ensures a seamless transition across multiple screen sizes and input methods. This offers a consistent and engaging experience whether on desktop, tablet, or mobile apps.Clear & Immediate Feedback: Users need confirmation that their actions are being registered. Interaction design incorporates visual, auditory, or haptic feedback, such as button animations, error messages, or progress indicators. This provides clarity and enhance user confidence.Engaging & Interactive Elements: Well-designed interaction elements ensure that: Buttons and links are easily distinguishableTransitions feel smooth and purposefulEvery action has a clear and meaningful responseHere's a user experience design vs interaction design comparison to highlight their differences:​How Does Interaction Design Elevate UX Design?Both ​Interaction Design (IxD) and User Experience Design (UX Design) are integral components of the digital design landscape, each with distinct roles and focuses. However, looking at their interdependability, it can be safely said they are not mutually exclusive.While IxD takes UX design to new heights, it isn’t unusual to ask, “Is user experience central to interaction design?”It absolutely is!Interaction Design operates within the broader scope of User Experience Design. Simply put, UX defines the experience, while IxD brings it to life through dynamic interactions.By integrating strong interaction design principles into UX design, businesses can create products that don’t just work, but feel effortless and delightful to use.When done right, interaction design ensures that every user action feels natural and fluid, leading to better engagement, higher retention, and an overall improved digital experience.Is Interaction Design the Future of UX?While Interaction Design lives within the broader umbrella of User Experience design, it doesn’t mean they are interchangeable.A seamless product experience requires both. A strong UX without thoughtful interactions can leave users confused. Flawless interactions without a user-centered foundation can lack meaning. And here’s the important part: not every UX designer is skilled in Interaction Design, and not every interaction designer excels at UX.This is why an effective design strategy should involve understanding the distinctions highlighted in this user experience design vs interaction design comparison. These help businesses bring the right mix of talent on board when building teams. This way, they can make sure the products they create not only function right, but also feel right.

Read More
sundew

Blog

Data Engineering Vs. Data Science - Key differences

Business Intelligence(BI) and Data Analytics are no longer buzzwords. Instead, enterprises are rapidly gravitating towards them to improve business performance. With adequate focus on data literacy, its collection, and data infrastructure, it is possible to accomplish results capable of enhancing revenue generation. Businesses generate a humongous amount of data today. This necessitates adopting intelligent and result-oriented data products to process the generated data and enhance its utility. The model "Data Science Hierarchy of Needs," suggested by Monica Rogati, further corroborates this. According to this model, Data Acquisition occupies the lowest level. It is succeeded by Data Engineering, Data Analytics, Business Analytics, Data Science, and AI (deployment and observability). Data engineering helps to connect data gathering with Data Science. Raw data cannot form the basis for building predictive models that establish trends and patterns. It needs to be converted into a usable or accessible form. This transformation is achieved using well-designed systems and pipelines. The designing, developing, testing, and maintenance of these pipelines and architectures fall under the purview of Data Engineering.Data Science deals with the extrapolation of knowledge and insights from transformed but noisy raw data, both structured and unstructured, and applying that knowledge to answer business-related queries for better decision-making and formulate metrics to improve implemented business processes.Data scientists achieve the above by using different scientific methods, algorithms, processes, and systems. Data engineers complement Data Scientists by providing them with the necessary framework and architecture. Data Engineering: Defining its scope and criticalityAnalysis of Big Data has completely changed the way of doing business. The collection and management of such a large volume of data require the development of an architecture that can handle structured and unstructured primary data and appropriately cleanse and transform it. The development and management of this data architecture is done by Data Engineers. They use different intricate methodologies to achieve this. Tools associated with the implemented technique range from AI to Data Integration. By choosing and employing the correct tools and techniques, Data engineers gather, clean and authenticate data to make it comprehensive and coherent for analysis by Data Scientists. Data Engineering is also important because it helps to refine SDLC(Software Development Life cycle), enhances data security, protect businesses from cyber attacks and cyber frauds and increase business domain knowledge. Its contribution to elongating the shelf-life of a business is indisputable. By converting unreadable data into readable form, Data Engineering empowers Data Scientists with secure data to generate accurate business insights. Data Science: Its meaning and definitionModern businesses are awash with data. With the expertise of professionals, it is possible to use available cutting-edge technology and tease actionable insights from the gigabytes of transformed data generated. These experts are Data Scientists. They add value to a business by providing enterprises with accurate analytics and insights for precise decision-making, deciphering trends to realign goals, improve workflows by focussing on its best practices and identifying growth and revenue-earning opportunities. Data Science is also used to provide quantifiable data-driven evidence, refine target audience and influence insightful talent acquisition. Data scientists are invaluable assets who analyze disparate data sources to generate meaningful insights that help businesses to grow, become profitable, and attain sustainability.Data Engineering vs. Data ScienceOften confused and thought to refer to the same thing, Data Engineering and Data Science are interwoven processes with distinct fundamental differences. Data engineering is the bridge that straddles the divide between data gathering and gaining value from data. It plays a critical role in the success of data science. Differences between the two primarily relate to:Data handling: Big Data can benefit businesses by creating multiple possibilities for improvement. An organization employs people skilled in Big Data management to maximize this advantage. Data engineers and Data scientists play a crucial role in this management.In the "Data Science Hierarchy of needs" pyramid, there is a clear distinction between the job roles essayed by Data engineers and Data scientists. Data engineers collect relevant data, transform it, and move it into pipelines so Data scientists can aggregate, optimize, test, and analyze it to generate real-time insights.  Data task classification: The work of a Data engineer is technically oriented as it involves three critical data actions, namely designing, building, and arranging Data "pipelines." They are Data Architects who design Big Data architecture and prepare it for analysis.Alternatively, Data scientists analyze, test, create and present data so enterprises can improve business decision-making and make it data-driven. Data engineers do technical work, while Data scientists are more business-oriented. Tools involved: Machine Learning(ML) and Deep Learning(DL) are to Data Science what ETL(Extract Transform Load) and ELT(Extract Load Transform) are to Data Engineering. ETL is the process of extracting, transforming, and loading the transformed data onto the original database.ML, a subset of Artificial Intelligence or AI, enables computers to forecast future scenarios automatically by using specific algorithms and existing information. DL uses artificial neural networks built on ML algorithms to allow the automatic learning of computers. Of algorithms and statistics: Data Engineering uses algorithms, but Data Science uses statistics. Algorithms comprise rules and processes that guide computers to carry out specific tasks. They deal with information retrieval, logical reasoning, and mathematical problems like calculus and linear algebra.Statistics involve the study and interpretation of numerical data. Other than using statistics to group, review, and analyze information, Data scientists also use it to apply quantifiable mathematical models to specific variables.ConclusionTo sum up, Data engineering plays a critical role in Data Science. But while they might occur together in almost all business applications, they are fundamentally different and require separate tools and skill sets for successful application.Data Engineering deals with data management, understanding, and extraction from big datasets. At the same time, Data Science is concerned with analyzing the cleaned and extracted data and using analytics to generate intelligent business insights. Together, they help businesses transition from average to excellent.

Read More
sundew

Blog

The Role of Technology in Manufacturing: Building a Sustainable Future

“Sustainability” has become a buzzword for customers, governments, and businesses alike, as they swiftly implement the latest technology in manufacturing. Jumping onto the wagon are manufacturers too.A top priority while rethinking the traditional manufacturing processes is decarbonization. It is key to rethinking manufacturing, requiring optimized processes, reduced waste, and eco-friendly materials to achieve net-zero goals.So, what green manufacturing technologies can companies adopt to achieve their sustainability goals? And, how are these innovations benefiting the global landscape?Let’s find out.Addressing Key Challenges in the Manufacturing SectorGrowing Cybersecurity RisksAs manufacturing processes become more interconnected and data-driven, the sector faces escalating cyber threats, surpassing even finance and insurance in the share of global cyberattacks. The integration of IoT, robotics, AI, and autonomous machines has further expanded the attack surface, raising concerns about data security and potential operational disruptions. Key threats include:Phishing Attacks: Malicious emails or fake websites corrupt systems, stealing business data for financial gain.Ransomware: Encrypts files, rendering networks inoperable until demands are met, with threats of data leaks.Supply Chain Attacks: Exploits weak links in partners' systems, impacting operations across the supply chain.IP Theft: Silent harvesting of intellectual property that can lead to stolen or altered data.Outdated InfrastructureManufacturers must address the challenge of outdated, rigid infrastructures that are often incompatible with modern technologies. Digital transformation requires a comprehensive organizational shift, starting with:Training in robotic operationsFlexible production line configurationsCloud-based resource planningAt the same time, establishing a carbon footprint baseline is crucial for sustainability. While manufacturers often measure direct energy usage, accounting for indirect emissions is challenging. Automation, cloud computing, and data analytics can help by recording and reporting environmental impact, but many companies still rely on outdated, disconnected systems.Transitioning to Agile Manufacturing ModelsTraditionally, manufacturing stages operated in isolation, causing issues like heavy inventories, wasted hours, and increased costs due to a lack of integration. Emerging technology models, by contrast, are agile and flexible, enabling rapid adaptation to changing demands.However, adopting this model requires:End-to-end supply chain integrationEfficiency and agility across all stages, including suppliersOpen, fast communication within the organizationThese shifts demand a new mindset on the assembly line. However, they are often met with resistance from labor and middle management, who may question whether the new approach truly outperforms the traditional model.Knowledge Gap in Manufacturing DigitizationOne of the biggest challenges in manufacturing digitization is the limited expertise needed to safely implement advanced technologies. Manufacturers must invest in learning to use tools like advanced analytics, AI, machine learning, digital twins, and automation. Without this knowledge, progress can stall.For companies without in-house tech teams, outsourcing can ease the adoption process. The process can be further simplified with expert partners like Sundew offering strategic guidance and simplifying the transformation journey.Human ErrorsHuman errors are one of the most common challenges in manufacturing digitization, affecting safety, quality, and cybersecurity. For example, employees may incorrectly configure machines, disclose sensitive information, mishandle equipment, or open unknown attachments. Additionally, new processes can increase the risk of human error, especially if employees are resistant to change. To address this, it’s important to highlight the benefits of digitization, empowering employees to identify areas for adaptation and improvement rather than imposing change.How to Use Technology in Manufacturing for Sustainable Growth?As environmental awareness rises, consumers are increasingly seeking ways to reduce their impact. Governments and global organizations are also introducing regulations to ensure manufacturers adopt greener practices.So, how is technology used in manufacturing to promote more sustainable outcomes?Here are some key technologies that businesses must implement to stay compliant and future-proof.Artificial Intelligence (AI) AI is transforming production efficiency across industries, and its impact on sustainability is equally profound.For manufacturers, AI integration stands primary in meeting 79% of sustainable development goals. This can be done through robotics, machine learning, or advanced data systems.Beyond environmental benefits, AI offers manufacturers and their clients substantial business advantages. By leveraging AI-driven insights, companies can enhance product quality, reduce defects, and minimize downtime from equipment inefficiencies. The result? Reduced waste, energy savings, and timely delivery of superior products to customers.Big Data and AnalyticsBig data is another technology in manufacturing that enhances both sustainability and productivity. Advanced big data & analytics systems are transforming how businesses monitor supply chains, predict customer demand, plan operational capacity, and assess environmental impact. With up to 2,000 pieces of equipment on a single production line, each equipped with 100-200 sensors collecting data every second, the potential for manufacturers is immense. This data enables accurate emissions reporting and rapid identification of efficiency challenges.Moreover, data sharing promotes innovative collaboration, allowing companies to pool resources, fill capability gaps, and access new markets. For example, integrating insurance underwriters and telecommunications providers can deliver microinsurance via mobile subscriptions to underserved populations. By harnessing big data, manufacturers can drive sustainable growth while addressing social and environmental issues.Industrial Internet of Things (IIoT)Equipping production systems with intelligent technologies allows manufacturers to enhance efficiency and safety, and minimize downtime. A recent ABB survey found that IIoT integration has helped 94% of manufacturers see significant improvements in sustainability.By connecting machines, manufacturers can monitor performance in real-time, swiftly addressing inefficiencies and preventing costly downtime and waste. Sensors track carbon emissions, providing visibility and traceable metrics for regulation compliance.Additionally, enhanced waste traceability offers deeper insights into waste management systems. Ultimately, connecting intelligent machines provides actionable data that helps businesses meet compliance standards. This approach also facilitates more sustainable operations and supply chains.Enterprise Resource Planning (ERP) SoftwareERP systems integrate all major business functions - from accounts and procurement to operations - by collecting and sharing data across the organization. This comprehensive overview helps manufacturers meet compliance standards and achieve end-to-end efficiency.By providing insights into energy and material consumption, ERPs enable executives to identify opportunities for waste reduction and efficiency gains. They also facilitate accurate carbon impact estimates, pinpointing areas for minimizing greenhouse gas emissions and driving sustainability.Benefits of Digital Technology in ManufacturingImplementing the latest technology in manufacturing companies offers transformative advantages at every stage of the production process. These include the following.Environmental ConservationAdvanced technologies significantly reduce energy consumption, emissions, and waste, leading to a smaller environmental footprint. By embracing eco-friendly practices, manufacturers help preserve natural resources and address climate change.Cost SavingsInvesting in sustainable technologies often results in long-term cost savings. Energy-efficient machinery lowers utility bills, while waste reduction strategies minimize disposal costs, enhancing overall operational efficiency.Market CompetitivenessAdopting green manufacturing practices provides a competitive edge as consumers increasingly favor eco-friendly products. This commitment enhances brand reputation and attracts environmentally conscious consumers and talent.Regulatory ComplianceWith stricter environmental regulations, new technology in the manufacturing industry enables companies to meet compliance standards effectively. This proactive approach mitigates legal risks and builds trust among stakeholders.Increased ProductivityTechnologies like additive manufacturing and AI enhance operational efficiency, resulting in higher-quality products and faster response times to market demands. This, in turn, significantly boosts productivity.Improved Worker SafetyAutomation and robotics reduce human exposure to hazards on the production line. Remote monitoring allows workers to focus on complex tasks, enhancing safety and overall well-being.Greater ResilienceAdvanced digital technology in manufacturing promotes enhanced agility in the face of challenges. Companies that leverage these innovations often outperform competitors and adapt better to market changes.Enhanced ProfitabilityAs eco-conscious consumers prioritize sustainability, businesses aligning with these values can achieve greater market success. Technology helps navigate stricter regulations, ensuring profitability while appealing to a conscientious audience.Achieving net zero will require reimagining entire ecosystems— using AI integration, IoT, and big data to optimize processes, cut waste, and boost efficiency.While the challenges may seem daunting, companies worldwide are introducing innovative solutions aimed at preserving the planet for future generations. While addressing the environmental impact of industrialization is a complex and gradual process, it is undoubtedly achievable. Technology in manufacturing plays a pivotal role in this transformation, delivering scalable and impactful solutions to build a more sustainable future.

Read More

Thank You!

Excellent!

Successfully subscribed to Sundew Solutions newsletter!

Acknowledged