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

TSLA RR builder for PHP.

License

NotificationsYou must be signed in to change notification settings

stayallive/tlsa-php

Repository files navigation

Latest Version on PackagistTotal Downloads

This package contains a class that can generate TLSA resource records.

$tlsa =newStayallive\TLSA\Builder('alexbouma.me');$tlsa->forCertificate($pemEncodedCertificate);$tlsa->getRecord();// returns the full DNS record$tlsa->getRecordContents();// returns the DNS record contents only

Installation

You can install the package via composer:

composer require stayallive/tlsa

Usage

The class can generate a TLSA resource record for all certificate usages, selectors and matching types.

For more information check out the Wikipedia entry:https://en.wikipedia.org/wiki/DNS-based_Authentication_of_Named_Entities#RR_data_fields

useStayallive\TLSA;$tlsa =newTLSA\Builder('alexbouma.me',25,'udp');// Builder for the alexbouma.me domain, port 25 and the UDP protocol$tlsa->forCertificate($pemEncodedCertificate);$tlsa->forPublicKey($pemEncodedPublicKey);$tlsa->certificateUsage(TLSA\Builder::CERTIFICATE_USAGE_DOMAIN_ISSUED_CERTIFICATE);// Set the certificate usage to `3` (default)$tlsa->selector(TLSA\Builder::SELECTOR_PUBLIC_KEY);// Set the selector to `1` (default)$tlsa->matchingType(TLSA\Builder::MATCHING_TYPE_SHA256);// Set the matching type to `1` (default)$dns->getRecord();// returns the full DNS record$dns->getRecordContents();// returns the DNS record contents

Testing

composertest

Changelog

Please seeCHANGELOG for more information what has changed recently.

Contributing

Please seeCONTRIBUTING for details.

Security

If you discover any security related issues, please emailme@alexbouma.me instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please seeLicense File for more information.

About

TSLA RR builder for PHP.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp