BTC NOON
  • Home
  • Cryptocurrency
  • Bitcoin
  • Ethereum
  • Blockchain
  • Regulations
  • Altcoin
  • DeFi
  • Web 3.0
No Result
View All Result
BTC NOON
No Result
View All Result
Home Blockchain

Configure an IBM Cloud Code Engine application to use custom domains

Xiao Chen Sun by Xiao Chen Sun
May 29, 2023
in Blockchain
0
Configure an IBM Cloud Code Engine application to use custom domains
74
SHARES
1.2k
VIEWS
Share on FacebookShare on Twitter


ttps://www.ibm.com/weblog/configure-an-ibm-cloud-code-engine-application-to-use-custom-domains/”http://www.w3.org/TR/REC-html40/free.dtd”>

IBM Cloud Code Engine is a completely managed, serverless platform that runs your containerized workloads, together with internet apps, microservices, event-driven capabilities or batch jobs. Code Engine even builds container photos for you out of your supply code.

All these workloads can seamlessly work collectively as a result of they’re all hosted inside the identical Kubernetes infrastructure. The Code Engine expertise is designed in order that you might give attention to writing code and never fear in regards to the infrastructure that’s wanted to host it.

Stipulations

  • Acceptable permissions to make use of the IBM Cloud Code Engine service. See here for how to manage these.
  • An utility operating on IBM Cloud Code Engine. You’ll be able to deploy the take a look at utility from here.
  • Entry to switch DNS of a public area/hostname. For those who personal a site or bought one, you’ll more than likely have entry to handle DNS for that area. Within the instance, we’ve used IBM Cloud Internet Services that assist CNAME flattening function to allow us to make use of root area.
  • A TLS/SSL certificates signed by a public certificates authority.

On this instance, the take a look at utility is deployed on IBM Cloud Code Engine. The unique hostname seems one thing just like this https://application-27.zx67dfvbl7l.us-south.codeengine.appdomain.cloud/. We’ll expose this utility utilizing two {custom} domains:

  • https://instance.org
  • https://codeengine.instance.org

Step-by-step directions

Refer this document and the beneath steps to create the TLS certificates for each domains and use them to reveal this take a look at utility. You need to use Let’s Encrypt CA for example to request TLS certificates for these {custom} domains. Nevertheless, you may also use a TLS certificates from any of the general public certificates authorities.

We’ll comply with these steps to perform our objectives:

  1. Generate CSR for TLS certificates and get it signed from CA.
  2. Add your area to Code Engine utility UI.
  3. Create CNAME report in DNS in your area identify.

1. Generate CSR for TLS certificates and get it signed from CA

To generate a legitimate signed TLS certificates from Let’s Encrypt CA, you should utilize the Certbot consumer to generate the CSR and get it signed from CA. First, it’s good to set up the Certbot utilizing these instructions.

Use the next command to start out the method for the certificates era:

certbot certonly --manual --preferred-challenges dns --email contact@instance.org --server https://acme-v02.api.letsencrypt.org/listing --agree-tos --domain codeengine.instance.org

certbot certonly --manual --preferred-challenges dns --email contact@instance.org --server https://acme-v02.api.letsencrypt.org/listing --agree-tos --domain instance.org

Then, it ought to ask you for the area possession verification step:

root@jumpbox:~# certbot certonly --manual --preferred-challenges dns --email contact@instance.org --server https://acme-v02.api.letsencrypt.org/listing --agree-tos --domain codeengine.instance.org
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificates for codeengine.instance.org

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT report underneath the identify:

_acme-challenge.codeengine.instance.org

with the next worth:

Fq2wbN9mUSfnWZkGXyaEgVaOm-_9RB4cv4zJEp44Sbg

Earlier than persevering with, confirm the TXT report has been deployed. Relying on the DNS
supplier, this will take a while, from just a few seconds to a number of minutes. You'll be able to
verify if it has completed deploying with help of on-line instruments, such because the Google
Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.codeengine.instance.org.
Search for a number of bolded line(s) beneath the road ';ANSWER'. It ought to present the
worth(s) you have simply added.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Proceed

Let’s add the verification TXT information for each domains within the DNS as per the beneath:

codeengine.instance.org	TXT	Fq2wbN9mUSfnWZkGXyaEgVaOm-_9RB4cv4zJEp44Sbg

instance.org		TXT	DfjSDFFDbN9vccdSDnjnkSNSNKx-_9vccdSDnZvccdSDn

Now, it’s good to create a TXT report with the above worth in your area’s DNS servers. The DNS servers in your area might need been supplied by your area registrar or these might be hosted elsewhere. After you add this DNS report, you possibly can confirm it utilizing dig or nslookup:

% dig txt _acme-challenge.codeengine.instance.org. +brief
"Fq2wbN9mUSfnWZkGXyaEgVaOm-_9RB4cv4zJEp44Sbg"

After you press Enter or Return, it’s best to see one thing like the next:

Efficiently obtained certificates.
Certificates is saved at: /and so on/letsencrypt/reside/codeengine.instance.org/fullchain.pem
Secret's saved at:        /and so on/letsencrypt/reside/codeengine.instance.org/privkey.pem
This certificates expires on 2023-07-20.
These information shall be up to date when the certificates renews.

NEXT STEPS:
- This certificates is not going to be renewed routinely. Autorenewal of --manual certificates requires the usage of an authentication hook script (--manual-auth-hook) however one was not supplied. To resume this certificates, repeat this identical certbot command earlier than the certificates's expiry date.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
For those who like Certbot, please contemplate supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

You bought two information:

/and so on/letsencrypt/reside/codeengine.instance.org/fullchain.pem
  • That is your TLS certificates with full root-ca chain certificates. The contents needs to be one thing like this:
-----BEGIN CERTIFICATE-----
MIIFNDCCBBygAwIBAgISBOLyU
------
------
------
cRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC
Dfvp7OOGAN6dEOM4+qR9sdjoSYKEBpsr6GtPAQw4dy753ec5
-----END CERTIFICATE-----

/and so on/letsencrypt/reside/codeengine.instance.org/privkey.pem

  • That is the non-public key in your TLS certificates. The content material of the non-public key file needs to be one thing like the next:
-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEF
------
------
------
BAZQ4dZS/TXFRMQcgNL3nWGk42YSOYAjqJNceX6rQMSoxDiCdb6e+
+pT6jcKsENz88M3dpNQNi1OSUQ==
-----END PRIVATE KEY-----

2. Add your area to Code Engine utility UI

Since you might have TLS certificates and key obtainable, now you can proceed so as to add the {custom} area to the IBM Cloud Code Engine utility from the IBM Cloud console.

  • Go here and comply with Initiatives > Your venture identify > Purposes > Utility identify > Area mappings tab
  • Choose the applying for which you wish to use a {custom} area.
  • Choose Area mappings from the highest bar menu.
  • Right here, it’s good to click on on the blue button named Create underneath the part titled Customized area mappings.
  • A brand new setup wizard ought to open just like the screenshot above. You must paste the contents from the file fullchain.pem within the textual content field titled Certificates chain and file privkey.pem to the textual content field titled Personal key.
  • Beneath the part titled Area identify and goal utility, kind the precise {custom} area hostname:
    • Area identify: Sort “instance.org” on this editable textual content subject.
    • CNAME Goal: Pref-filled textual content needs to be there, which we have to create a CNAME report for this area identify.
instance.org			CNAME	{custom}.zx67dfvbl7l.us-south.codeengine.appdomain.cloud

codeengine.instance.org	CNAME	{custom}. zx67dfvbl7l.us-south.codeengine.appdomain.cloud

3. Create a CNAME report in DNS in your area identify

This is a crucial step. Let’s create a CNAME report in your area’s DNS servers pointing to the worth from the CNAME goal field.

After you might have created the CNAME report, proceed by deciding on the Create button to complete creating the {custom} area identify mapping. This could take jiffy to be absolutely activated within the system.

If you wish to use your root area (instance.org) as a substitute of a subdomain like codeengine.instance.org, you might wish to use the CNAME flattening function of IBM Cloud Web Companies. For extra particulars confer with the hyperlinks beneath.

If all the pieces goes tremendous, it’s best to have the ability to entry your utility utilizing your {custom} area:

% curl -k https://instance.org 
Hi there World from:
. ___  __  ____  ____
./ __)/  (    (  __)
( (__(  O )) D ( ) _)
.___)__/(____/(____)
.____  __ _   ___  __  __ _  ____
(  __)(  (  / __)(  )(  ( (  __)
.) _) /    /( (_  )( /    / ) _)
(____)_)__) ___/(__)_)__)(____)

Some Env Vars:
--------------
CE_APP=application-27
CE_DOMAIN=us-south.codeengine.appdomain.cloud
CE_SUBDOMAIN=z87ya4p4l7l
HOME=/root
HOSTNAME=application-27-00004-deployment-6fff67f786-f82qm
K_REVISION=application-27-00004
PATH=/usr/native/sbin:/usr/native/bin:/usr/sbin:/usr/bin:/sbin:/bin
PORT=8080
PWD=/
SHLVL=1
z=Set env var 'SHOW' to see all variables

Congratulations, we’ve efficiently uncovered our IBM Cloud Code Engine utility through {custom} domains.

Study extra

For extra info on associated IBM Cloud companies please confer with the hyperlinks beneath.

Get began with IBM Cloud Code Engine https://www.ibm.com/cloud/code-engine

Get started with IBM Cloud Code Engine

Tags

You might also like

What can AI and generative AI do for governments?

FTX Sues Ex-Employees of Salameda as It Seeks to Recover $157M

Spear phishing vs. phishing: what’s the difference?



Source link

Tags: applicationCloudcodeConfigurecustomDomainsEngineIBM
Share30Tweet19
Xiao Chen Sun

Xiao Chen Sun

Recommended For You

What can AI and generative AI do for governments?

by Xiao Chen Sun
September 23, 2023
0

Few applied sciences have taken the world by storm the best way synthetic intelligence (AI) has over the previous few years. AI and its many use instances have...

Read more

FTX Sues Ex-Employees of Salameda as It Seeks to Recover $157M

by Xiao Chen Sun
September 23, 2023
0
FTX Sues Ex-Employees of Salameda as It Seeks to Recover $157M

The defendants allegedly used their connections on the within to make sure that their withdrawals have been prioritized over these of different prospects. Bankrupt crypto alternate FTX has...

Read more

Spear phishing vs. phishing: what’s the difference?

by Xiao Chen Sun
September 23, 2023
0

The easy reply: spear phishing is a particular sort of phishing assault. Phishing is any cyberattack that makes use of malicious e mail messages, textual content messages, or...

Read more

Coinbase Explores FTX Acquisition and Derivatives License

by Xiao Chen Sun
September 22, 2023
0
Coinbase Explores FTX Acquisition and Derivatives License

Till FTX collapsed in November, FTX Europe was the one agency providing particular crypto derivatives (perpetual futures) to the European market. Stories have emerged that Coinbase thought-about buying...

Read more

Foundational models at the edge

by Xiao Chen Sun
September 22, 2023
0

Foundational models (FMs) are marking the start of a brand new period in machine learning (ML) and artificial intelligence (AI), which is resulting in sooner improvement of AI...

Read more
Next Post
Dogecoin transaction count blasts past Bitcoin, Ethereum

Dogecoin transaction count blasts past Bitcoin, Ethereum

Related News

U.S. Justice Department Charges Two Russian Nationals for Involvement in Infamous Mt. Gox Crypto Exchange Hack

U.S. Justice Department Charges Two Russian Nationals for Involvement in Infamous Mt. Gox Crypto Exchange Hack

June 11, 2023
Ledger Launches Institutional-Grade Trading Network for Crypto Custody

Ledger Launches Institutional-Grade Trading Network for Crypto Custody

June 29, 2023
Crypto Exchange Bittrex in the Process of Winding Down US Operations Amid Regulatory and Economic Uncertainty

Crypto Exchange Bittrex in the Process of Winding Down US Operations Amid Regulatory and Economic Uncertainty

April 2, 2023

Browse by Category

  • Altcoin
  • Altcoin News
  • Altcoins
  • Artificial Intelligence
  • Bitcoin
  • Blockchain
  • Blockchain Games
  • Business
  • Crypto
  • Cryptocurrencies
  • Cryptocurrency
  • Culture
  • DeFi
  • Economy
  • Education
  • Entertainment
  • Ethereum
  • Featured
  • Gambling
  • Governance
  • Health
  • Lifestyle
  • Market
  • News
  • Regulations
  • Uncategorized
  • Web 3.0
  • World

Find Via Tags

Altcoin Analyst Bank Binance Bitcoin Blockchain Blog BTC CEO Coinbase Court Crypto data DeFi digital ETF ETH Ethereum Exchange finance Financial Foundation FTX Heres high IBM Investors Launch Launches market million Network NFT Price Protocol Rally Regulatory Report Ripple SEC Spot Top Trading Web3 XRP

Categories

  • Altcoin
  • Altcoin News
  • Altcoins
  • Artificial Intelligence
  • Bitcoin
  • Blockchain
  • Blockchain Games
  • Business
  • Crypto
  • Cryptocurrencies
  • Cryptocurrency
  • Culture
  • DeFi
  • Economy
  • Education
  • Entertainment
  • Ethereum
  • Featured
  • Gambling
  • Governance
  • Health
  • Lifestyle
  • Market
  • News
  • Regulations
  • Uncategorized
  • Web 3.0
  • World

Recommended

  • Australian Financial Regulator Sues Kraken Subsidiary for Allegedly Violating Margin Trading Regulations
  • Trader Says Dogecoin Rival Has Additional Upside Potential, Updates Outlook on Bitcoin and Worldcoin
  • Analyst Backs Bitcoin To Reach $34,500 In 2024 In New Prediction
  • What can AI and generative AI do for governments?
  • $25K or $30K Coming First? (BTC Price Analysis)

© 2023 BTC NOON | All Rights Reserved

No Result
View All Result
  • Home
  • Cryptocurrency
  • Bitcoin
  • Ethereum
  • Blockchain
  • Regulations
  • Altcoin
  • DeFi
  • Web 3.0

© 2023 BTC NOON | All Rights Reserved

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?