Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support AEWeb certificates #585

Merged
merged 5 commits into from
Sep 26, 2022
Merged

Support AEWeb certificates #585

merged 5 commits into from
Sep 26, 2022

Conversation

samuelmanzanera
Copy link
Member

Description

This change brings the SSL certificate support in AEWeb deployment along with DNSLink configuration.

Fixes #449

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Setup

  • Need to install the certificate located in priv/cert/selfsigned.pem in the OS keychain and to trust it (for HTTPS in localhost)

  • Need to use Add SSL certificate and key aeweb-cli#78 for SSL certificate deployment

  • Need to define a local DNS server like dnsmasq

  • Append at the end of the configuration for DNS in /etc/dnsmasq.conf

cname=example.com,localhost 
txt-record=_dnslink.example.com,"_dnslink=/archethic/ADDRESS_OF_THE_REF_TX"
  • Create file: /etc/resolver/example.com with
nameserver 127.0.0.1
  • Restart dnsmasq

  • Need to create self-signed certificate with : mix phx.gen.cert example.com -o example — creating a new key and certificate

  • Need to install the certificate in the OS keychain and to trust it.

How to

  • Deploy a website and use the SSL certificate in the AEWeb CLI to load the certificate and encrypted the SSL key
  • Visit: example.com:5000 (Port in dev for HTTPS), the deployed website should be rendered without trouble.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@samuelmanzanera samuelmanzanera added feature New feature request system Involve system management web hosting issue regarding web hosting labels Sep 22, 2022
@samuelmanzanera samuelmanzanera changed the base branch from master to develop September 22, 2022 21:38
@samuelmanzanera samuelmanzanera merged commit 17f0a1c into develop Sep 26, 2022
@samuelmanzanera samuelmanzanera deleted the aeweb_dnslink branch September 26, 2022 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request system Involve system management web hosting issue regarding web hosting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Certificate for Custom domains
2 participants