Getting ssl certificate using EAB key in certbot and signing in , in angular application

160 views Asked by At

I want to get the SSL certificate (.crt file) and (.key file) from ACME im facing some problems

Obtaining the SSL Certificate with ACME:

Install an ACME client like Certbot.

Run the following command to register with Google Trust Services using your EAB key:

certbot register --email --no-eff-email --server "https://dv.acme-v02.api.pki.goog/directory" --eab-kid "<EAB_KEY_ID>" --eab-hmac-key "<EAB_HMAC_KEY>"

Replace with your email address and <EAB_KEY_ID> and <EAB_HMAC_KEY> with the values you copied from Google Domains.

Run the following command to obtain the SSL certificate and private key:

certbot certonly --preferred-challenges dns-01 --dns-google -d

Replace with your actual domain name.

This command will use Google Cloud DNS to automatically configure your domain for ACME validation.

I am following these steps while i run this command :

certbot certonly --preferred-challenges dns-01 --dns-google -d

Im getting :- Saving debug log to C:\Certbot\log\letsencrypt.log

The requested dns-google plugin does not appear to be installed , I tried installing using pip3 show certbot-dns-google still im getting the same error of plugin not installed

I have Windows 10 Os , an py version is 3.12.1 . I installed certbot using the website and also using cmd line : pip install certbot-dns-google to integrate with Nginx server , Im following these following instructions :

Signing an Angular Application for HTTPS with Google Domain and EAB Key Securing your Angular application with HTTPS using an existing Google domain and EAB key involves setting up HTTPS on Google Domain and then configuring your Angular application to use the obtained certificates. Here's a breakdown of the process:

  1. Setting Up HTTPS on Google Domain: Login to Google Domains and navigate to your domain. Open the "Security" menu and click "Manage SSL certificates". If you haven't already, purchase an SSL certificate. Expand "Google Trust Services" and click "Get EAB Key". Copy the "EAB Key ID" and "EAB HMAC Key".
  2. Obtaining the SSL Certificate with ACME: Install an ACME client like Certbot. Run the following command to register with Google Trust Services using your EAB key: certbot register --email --no-eff-email --server "https://dv.acme-v02.api.pki.goog/directory" --eab-kid "<EAB_KEY_ID>" --eab-hmac-key "<EAB_HMAC_KEY>" Replace with your email address and <EAB_KEY_ID> and <EAB_HMAC_KEY> with the values you copied from Google Domains. Run the following command to obtain the SSL certificate and private key:

certbot certonly --preferred-challenges dns-01 --dns-google -d

Replace with your actual domain name. This command will use Google Cloud DNS to automatically configure your domain for ACME validation. 3. Configuring Your Web Server: Configure your web server (e.g., Apache, Nginx) to serve your website over HTTPS. Specify the obtained certificate and private key file paths in your web server configuration. Follow the specific instructions for your chosen web server. 4. Configuring Your Angular Application: Update your angular.json file to use HTTPS instead of HTTP. Modify the baseHref property to your HTTPS domain. Enable the useHash option when running in development mode: JSON

"build": { "options": { "useHash": true } }

This ensures proper routing behavior with hash navigation. 5. Building and Deploying: Build your Angular application for production using the ng build --prod command. Deploy your built application files to your web server.

0

There are 0 answers