npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

acme-dns-01-netcup

v1.1.4

Published

Netcup DNS for Let's Encrypt / ACME dns-01 challenges with ACME.js and Greenlock.js

Readme

acme-dns-01-netcup

Netcup DNS + Let's Encrypt. This module handles ACME dns-01 challenges, compatible with ACME.js and Greenlock.js.

It passes acme-dns-01-test.

Features

  • Full Netcup CCP DNS API integration
  • Built-in propagation verificationset() polls authoritative nameservers and public resolvers (1.1.1.1 / 8.8.8.8) before returning
  • Automatic zone detection (walks from most-specific to least-specific)
  • Cleans up stale TXT records from previous runs on remove()
  • Supports wildcard certificates (dns-01 is required for *.example.com)
  • Zero external dependencies (uses Node.js built-in fetch and dns)

Install

npm install acme-dns-01-netcup

Requires Node.js 18+.

Netcup API Credentials

You need three values from the Netcup Customer Control Panel (CCP):

  1. Customer Number (Kundennummer) — your Netcup account number
  2. API Key — create one under Master Data → API
  3. API Password — set one under Master Data → API

Usage

const acmeDnsNetcup = require('acme-dns-01-netcup');

const challenge = acmeDnsNetcup.create({
    customerNumber: '12345',
    apiKey: 'your-api-key',
    apiPassword: 'your-api-password',
    verifyPropagation: true,  // default: true (recommended)
    verbose: true             // log progress to console
});

ACME.js

const ACME = require('acme');
const Keypairs = require('@root/keypairs');
const CSR = require('@root/csr');
const PEM = require('@root/pem');

const acme = ACME.create({
    maintainerEmail: '[email protected]',
    packageAgent: 'my-app/1.0.0',
    notify: (ev, msg) => console.log(ev, msg)
});

await acme.init('https://acme-v02.api.letsencrypt.org/directory');

// ... create account, generate keypair, CSR ...

const pems = await acme.certificates.create({
    account,
    accountKey,
    csr,
    domains: ['example.com', '*.example.com'],
    challenges: {
        'dns-01': challenge
    }
});

Greenlock.js

const Greenlock = require('greenlock');

const greenlock = Greenlock.create({
    packageAgent: 'my-app/1.0.0',
    configDir: './greenlock.d',
    maintainerEmail: '[email protected]'
});

greenlock.manager.defaults({
    agreeToTerms: true,
    subscriberEmail: '[email protected]',
    challenges: {
        'dns-01': challenge
    }
});

await greenlock.add({
    subject: 'example.com',
    altnames: ['example.com', '*.example.com']
});

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | customerNumber | string \| number | required | Netcup customer number | | apiKey | string | required | Netcup API key | | apiPassword | string | required | Netcup API password | | verifyPropagation | boolean | true | Wait for DNS propagation in set() before returning | | verbose | boolean | false | Log debug information to console | | waitFor | number | 10000 | Interval (ms) between DNS polling attempts | | retries | number | 120 | Max retries for authoritative NS polling (~20 min) | | publicRetries | number | 60 | Max retries for public resolver polling (~10 min) | | propagationDelay | number | 120000 | Delay (ms) for acme.js (only when verifyPropagation is false) |

Why does set() take so long?

Netcup uses a serialised DNS zone update queue. A single update typically takes 5–10 minutes to propagate. If a previous remove() and new set() happen close together, the queue can take 10–20 minutes.

When verifyPropagation is enabled (default), set() polls the authoritative nameservers every 10 seconds (up to 20 minutes), then verifies on public resolvers (1.1.1.1 / 8.8.8.8) for up to 10 additional minutes. This ensures Let's Encrypt validators see the record on the first attempt.

If you disable verifyPropagation, you must set a sufficiently large propagationDelay to account for Netcup's queue (at least 120 seconds, but more may be needed).

License

MIT