# Path to certificate authority (default: https://acme-v02.api.letsencrypt.org/directory)
{

        if ( $letsencryptStatus eq 'test' ) {

            # Use staging directory for testing
            # Once you are sure you have the settings right then change

            # If it's v1 then use v1, if v2 or auto then use v2 staging
            if ( $letsencryptAPI eq '1' ) {
                $OUT .= "CA=\"https://acme-staging.api.letsencrypt.org/directory\"\n";
            }
            elsif ( ( $letsencryptAPI eq '2' ) || ( $letsencryptAPI eq 'auto' ) ) {
                $OUT .= "CA=\"https://acme-staging-v02.api.letsencrypt.org/directory\"\n";
            }
        }

        elsif ( $letsencryptStatus ne 'test' ) {

            # Real server - default settings are in the the main dehydrated file
            # Only use this once you are sure things are OK or you will hit a rate limit.

            # If it's v1 then use v1, if v2 then v2, if auto accept the defaults in the main file
            if ( $letsencryptAPI eq '1' ) {
                $OUT .= "CA=\"https://acme-v01.api.letsencrypt.org/directory\"\n";
            }
            elsif ( $letsencryptAPI eq '2' ) {
                $OUT .= "CA=\"https://acme-v02.api.letsencrypt.org/directory\"\n";
            }
	    else {
		$OUT .= "#CA=\"https://acme-v02.api.letsencrypt.org/directory\"\n";
            }
        }


}
