DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Zero Trust, Build High Scale TLS Termination Layer
  • How to Verify Domain Ownership: A Technical Deep Dive
  • Strengthening Cybersecurity: The Role of Digital Certificates and PKI in Authentication
  • Optimization Frontend App by Performance Testing

Trending

  • A Comprehensive Guide to Prompt Engineering
  • Ingesting Fixed-Width Mainframe Files Into Delta Lake: The Details Nobody Writes Down
  • 5 Layers of Prompt Injection Defense You Can Wire Into Any Node.js App
  • AI in Software Development: A Mirror, Not a Magic Wand
  1. DZone
  2. Software Design and Architecture
  3. Security
  4. Getting a Private SSL Certificate Free of Cost

Getting a Private SSL Certificate Free of Cost

This article will guide you on how to create wildcard certificates for your internal applications without paying an additional amount.

By 
sagar pawar user avatar
sagar pawar
·
Mar. 18, 23 · Tutorial
Likes (2)
Comment
Save
Tweet
Share
4.6K Views

Join the DZone community and get the full member experience.

Join For Free

You work for any software deployment project, you deploy code in multiple environments and test it.  You test the site with HTTP, not HTTPS. Why? you need an SSL certificate for it. Getting a certificate for a lower environment could be difficult considering the cost. There is a way by which you can get a wildcard certificate and configure it with your website.

You can implement a PKI solution by using the AD CS (Active Directory Certificate Service) Windows Server role. 

PKI (Public Key Infrastructure) is the combination of software, encryption technologies, processes, and services that enables an organization to secure its data, communications, and business transactions. PKI relies on the exchange of digital certificates between authenticated users and trusted resources. You use certificates to secure applications and systems. It manages credentials from users and computers, inside and outside of your organization.

AD CS Windows Server role enables scenarios like secure wireless network, virtual private network, internet protocol security, network access protection, and encrypting file system.

Today we are going to see how to generate a wildcard certificate. There are two methods: one method is to generate it by using IIS with Internal CA, and another method is to create a wildcard certificate by using MMC with internal CA.  Let’s look at these one at a time:

Pre-requisites:

1. AD and DNS roles running on Windows server 2012.

2. AD CS role configured (CA + CA Web Enrollment) on standalone windows server 2012.

You can refer to the “Building Certificate Authority Server” blog to understand how to set up a CA (Certificate Authority) server.

Deployment Step 

First Method:

1. Login into the application server, open the IIS console, and click on the server certificate under the server name:


IIS Manager Console

2. Create a domain certificate as shown below.


Domain Certificate

3. Select Certification Authority and give it a friendly name.


Selecting Certificate Authority

4. Validate the certificate.


Certificate Validation

5. Bind the certificate on your website. Select the default website, and click on Bind. Choose the type of HTTPS and wildcard certificate which you have created.


Applying Certificate to Website

6. Make an alias entry on the DNS server to point to the app server where you have installed the certificate. 


DNS Alias Entry for Web Server

7. Now you can browse the site on HTTPS. Click on the lock icon on the browser, you see the valid certificate issued by the internal CA. 


Certificate Identification on website

Second Method: 

1. Login into the Application server and open the certificates MMC snap-in and add certificate snap-in.


Adding Certificate snap-in

2. Select a computer account for certificate management and select the local computer to open the console. 

3. Right-click the Certificates folder, which is found under the personal folder. Select All Tasks > Advanced Options > Create Custom Request.


Generating Custom Request

4. In the Certificate Enrollment Page select Custom Request > Proceed without enrollment policy, and select Next step.

5. In the Custom Request Page select (No template) Legacy key from the drop-down and select Next.


Custom Request under Enrollment

6. On the Certificate Information Page, expand the Details link and select the Properties button.

7. On the General tab, complete the Friendly name field and optionally you can add a description for the certificate. Add info in the subject tab like a common name for wildcard certificate (*.sagarcloud.com), OU, Organization, State, and Country. 


Providing Certificate Details

8. Select the Extensions tab, In Key usage select Digital and Key encipherment.


Certificate Properties - Extension

9. On the Private Key tab set the key size to 4096, and select the option “Make private key exportable.”


Certification Properties - Private Key

10. Click ok, next, and finish. Save the requested file on a local drive. Now you have created a certificate request.  The next step is to generate the certificate.

11. Login into the CA server and browse your internal CA web enrollment page (http://localhost/certsrv/Default.asp ) and click on the request for a certificate.

12. Click on advanced certificate request:

13. Refer to Step #10. Copy all the data from the requested file and paste it saved request box. Select web server and click on submit. 


Submitting Certificate

14. Request is submitted, it will offer to download the certificate. Select base 64 and download the certificate. Copy the certificate on the client machine where you raised the certificate request. 

15. Connect to the client machine and open MMC. Right-click the Certificates folder in the personal folder store and select import to the certificate. You will get the import was successful message.


Importing Certificate

If you have performed all the above steps successfully, open the certificate and you should have a valid wildcard certificate. I hope this article will help you to implement the same in your Organization. Thanks for reading the article.

Application server Certificate authority Domain Name System File system HTTPS Internet Protocol Microsoft Management Console Public key infrastructure Software deployment Web server

Published at DZone with permission of sagar pawar. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Zero Trust, Build High Scale TLS Termination Layer
  • How to Verify Domain Ownership: A Technical Deep Dive
  • Strengthening Cybersecurity: The Role of Digital Certificates and PKI in Authentication
  • Optimization Frontend App by Performance Testing

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook