Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Python library to handle acme-dns client communication and persistent account storage.

License

NotificationsYou must be signed in to change notification settings

joohoi/pyacmedns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A client library to handleacme-dns client communication and persistent account storage.

Installation

Install from PyPI

$ pip install pyacmedns

Usage

The following is a complete example of handling the validation using this library.

#!/usr/bin/env pythonfrompyacmednsimportClient,Storagewhitelisted_networks= ["192.168.11.0/24","[::1]/128"]domain="your.example.org"# Initialize the client. Point it towards your acme-dns instance.client=Client("https://auth.acme-dns.io")# Initialize the storage. If the file does not exist, it will be# automatically created.storage=Storage("/path/to/storage.json")# Check if credentials were previously saved for your domainaccount=storage.fetch("your.example.org")ifnotaccount:# Account did not exist. Let's create a new one# The whitelisted networks parameter is optionalaccount=client.register_account(whitelisted_networks)# Save itstorage.put(domain,account)storage.save()# Update the acme-dns TXT record.client.update_txt_record(account,"___validation_token_recieved_from_the_ca___")

About

Python library to handle acme-dns client communication and persistent account storage.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp