This library represents DigiCert's domain control validation (DCV) process. This is to satisfy the requirements specified in the CAB Forum baseline requirements to validate that an applicant has ownership or control over a domain. The BR documents multiple methods by which such control can be demonstrated. This initial version of the library is available for review.
DigiCert is open-sourcing this code to improve transparency and security around Domain Control Validation. We hope that others also will find this valuable for their DCV efforts.
For each method, this library has a preparation step and a validation step. The preparation step supplies information that is necessary for setting up the DCV, including generating a value that can be used as the required random value. The validation step performs the DCV (where possible) and validates that the necessary information has been received.
NOTE: For a high-level overview of the DCV process, as well as the details information on how request and response objects are used, please refer to the README-details.md file.
- The prepare step obtains contact information for the domain contact. The library does not facilitate sending the random value to the applicant.
- This library does not facilitate receiving the random value from the applicant. The validation step can only confirm the appropriate data has been collected.
- The prepare step generates the possible email addresses to which the random value could be sent. The library does not facilitate sending the random value to the applicant.
- This library does not facilitate receiving the random value from the applicant. The validation step can only confirm the appropriate data has been collected.
- The prepare step only returns a random value that can be used and the domains that could be used to validate the given FQDN.
- The validate step will call the DNS servers and obtain the specified record type for the specified domain. It will also check with the configurable domain label prefixed. If the random value is found in the record, the DCV can be considered complete.
- The prepare step obtains the email address of the DNS TXT record email contact. The library does not facilitate sending the random value to the applicant.
- This library does not facilitate receiving the random value from the applicant. The validation step can only confirm the appropriate data has been collected.
- The prepare step returns a random value that can be used and the file url that will be checked. If a file name is provided the file url will use it, otherwise it will use the configurable default file name.
- The validate step will make http calls (http on port 80 and https on port 443) to the domain at the provided file name (or the configurable default). If the random value is found at the location, the DCV can be considered complete.
The domain-control-validation library provides a set of APIs to perform domain control validation (DCV) as per the CAB Forum baseline requirements. Below are examples of how to use the library in your project.
First, add the domain-control-validation library as a dependency in your pom.xml:
<dependency>
<groupId>com.digicert.validation</groupId>
<artifactId>domain-control-validation-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
Please refer to the README-details.md file for details on how to integrate and use the library
The JavaDocs for the example-app can be generated via maven java-doc plugin.
mvn javadoc:javadoc
The generated JavaDocs can be found in the target/reports/apidocs
directory.
The root file of the JavaDocs is can be viewed in a browser via:
file:///<path-to-repo>/example-app/target/reports/apidocs/index.html
file:///<path-to-repo>/library/target/reports/apidocs/index.html
The example-app module is a reference implementation of the domain-control-validation library. This can be used as an example of how to call the API is domain-control-validation. This example-app includes a REST API implementation that uses the domain-control-validation and full flow integration tests of the BRs implemented in domain-control validation. See the example-app README for more information.
The library (domain-control-validation) module is the core of the domain-control-validation library. This module contains the implementation of the DCV methods and the API to interact with them. This module also contains the unit tests for the library. See the library README for more information.
run mvn clean install
from the root of the repository to build the library and example-app.
Instructions for running the example application
run mvn clean test
from the root of the repository to run the unit tests and then integration tests.
How to run the acceptance tests
This will be the most basic way to run the acceptance tests
How to run the acceptance tests in a way that allows for debugging the tests. We might not need to include this section in the final version of the readme
InternetDomainName has changed DCVDomainName Copyright (C) 2009 The Guava Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at