WHMCS注册商模块:Registr.io

2024年7月30日 | 分类: 【源码】

Registr.io 是 eDoms 旗下注册商。

网址:https://github.com/registrio

下载:https://github.com/registrio/Registrio-WHMCS

Registrio Module for WHMCS

Registrio Module for WHMCS >= 7.7.1

# Registrio Module for WHMCS which provide full functionality coverage for domains management and based on communication with Registry through Extensible Provisioning Protocol (EPP).
# EPP: RFC 5730, 5731, 5732, 5733, 5734, 5910
# this module it is working with https://registr.io software.

Installation steps

# Upload via FTP the ‘registrio’ directory to /modules/registrars/
# Set write permissions for log file /modules/registrars/registrio/log/registrio.log

Generate .PEM certificate

# create .pfx file
# openssl pkcs12 -export -out certificate.pfx -inkey www.yourdomain.com.key -in yourdomain.com.crt -certfile CA_bundle.crt
openssl pkcs12 -export -out certificate.pfx -inkey /etc/pki/tls/private/www.yourdomain.com.key -in /etc/pki/tls/certs/yourdomain.com.crt -certfile /etc/pki/tls/certs/gd_bundle.crt

# create PEM file

# include PassPhrase
openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes

# or
# without PassPhrase
openssl pkcs12 -in certificate.pfx -out certificate.cer

Upload certificates

# Copy certificate.cer to /modules/registrars/registrio/local_cert/certificate.cer
# Copy www.yourdomain.com.key to /modules/registrars/registrio/local_pk/www.yourdomain.com.key
# Copy a certificate authority file to /modules/registrars/registrio/cafile/

or you may use https://letsencrypt.org/

dnf install git net-tools
git clone https://github.com/certbot/certbot.git
cd certbot/
./letsencrypt-auto –help
systemctl stop httpd
./letsencrypt-auto certonly –standalone

Test connection with the server

# please make sure port 700 is not firewalled:
telnet epp-ote.nic.xy 700
openssl s_client -showcerts -connect epp-ote.nic.xy:700

# command line for acceptable client certificate CA names
openssl s_client -showcerts -connect epp-ote.nic.xy:700 -CAfile gd_bundle.crt

# command line to verify your own Certificate
openssl s_client -showcerts -connect epp-ote.nic.xy:700 -CAfile CA_bundle.crt -cert yourdomain.com.crt -key yourdomain.com.key

Add your whois server to the list, if not exist

# edit file /resources/domains/dist.whois.json
# check Not available text response on the whois server (No match for)
,
{
“extensions”: “.com.xy,.org.xy”,
“uri”: “socket://whois.com.xy”,
“available”: “No match for”
}

Configure Registrio EPP module in WHMCS

# Login to WHMCS admin panel.
# Go to Setup > Products/Service > Domain registrars
# Activate Registrio EPP module
# Configure module by providing EPP Server access credentials

Start using module

# Login to WHMCS admin panel.
# Go to Setup > Products/Service > Domain pricing
# Create “.yourtld” TLD and selectg “Registrio” module in “Auto Registration” field
# Define your pricing for different registration/renewal terms