Skip to main content

How to Download the SSL Certificate from a Weburl on Linux

How to Download the SSL Certificate from a Weburl on Linux




Many times we come across SSL websites that had certificates. We might need to deploy certificates in our wallets, Keystore, etc.

We can directly download those certificates from the URL on Linux server.

Let's says we want to download amazon.in cert use below command

$ true | openssl s_client -connect amazon.in:443 2>/dev/null | openssl x509



[himanshu@oel7server tmp]$ true | openssl s_client -connect amazon.in:443 2>/dev/null | openssl x509
-----BEGIN CERTIFICATE-----
MIIGlzCCBX+gAwIBAgIQCAQS8j7FlS+HLCsnKEkPGzANBgkqhkiG9w0BAQsFADBG
MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRUwEwYDVQQLEwxTZXJ2ZXIg
Q0EgMUIxDzANBgNVBAMTBkFtYXpvbjAeFw0yMTA3MTkwMDAwMDBaFw0yMjA3MTMy
MzU5NTlaMBsxGTAXBgNVBAMMECouY3kucGVnLmEyei5jb20wggEiMA0GCSqGSIb3
DQEBAQUAA4IBDwAwggEKAoIBAQDKrYzNvrrL8Ik7C7mi6lfEtfSnIqzvuMUrGajD
QG/pUVkvF0EdZAMW+uwt9Sy19HalO2UWYZu8Y/uYtWa4TCV2+kSFZ1PVjMnojSf3
ugWmMLV71nc8ZJ1YHZopLMeFeVcTOHn386wXDKNcevrfAEtAx1c2+9Xhl+snrIP/
eHaY6O0c5Ox9eya1HlbcTHwJHsKPQHfxHTi36vXe3qTkq007cFnq4B1eiAuveDk1
bfcZfeDg2qOR7O2X8WuCjLA8rAIovfB+cjVOI4YO/2cxeONuOrEWM3qdhr1f27gd
wqIwWXoQq+1lTIfNTjii0EzQeWwwQmYETfsO77Obce41o+IJAgMBAAGjggOqMIID
pjAfBgNVHSMEGDAWgBRZpGYGUqB7lZI8o5QHJ5Z0W/k90DAdBgNVHQ4EFgQUdzPg
HZ76kaAbSTY3fm+pvnVlZlAwgdwGA1UdEQSB1DCB0YIQKi5jeS5wZWcuYTJ6LmNv
bYIQd3d3LmFtYXpvbi5jby5pboINd3d3LmF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F4HnPKNELbBDjvzksgwDQYJKoZIhvcNAQELBQADggEBADo4qXb/
iz+6Y5HZat/zPtj0RB9PPMl/MyrxWigXnqucv4Z33hx6QNH5CtbCPOPZAvQKYHpD
NGxVdO8pwaXVifbCG0N+EfvnCXCKhQMuSC6Py19ys2ozWvAVnX4vFTweWBqFQAWE
v/NNh/w6t26EKPjvYLFls9MpC+8SO/T6knmD2dlqTWcTY0WEovXtU5K1FbdUfejr
s3KedtpP+DOD4m3v8avUJwW00+1nl1BSddnVWtNwZZ6e6I6BE3OvduSwarhHJQNL
JTwRaTSfqAL3sGkuM7hUI5uyMVbMsq0LadzU2frVlHlfEychpovI7YHcxlhEkWxj
0VueTt8ji0A7JfM=
-----END CERTIFICATE-----



Now copy the Begin to End in a notepad and save it as amazon.crt

Check the certificate now








If you like please follow and comment

Comments

Popular posts from this blog

WebLogic migration to OCI using WDT tool

WebLogic migration to OCI using WDT tool Oracle WebLogic Deploy Tool (WDT) is an open-source project designed to simplify and streamline the management of Oracle WebLogic Server domains. With WDT, you can export configuration and application files from one WebLogic Server domain and import them into another, making it a highly effective tool for tasks like migrating on-premises WebLogic configurations to Oracle Cloud. This blog outlines a detailed step-by-step process for using WDT to migrate WebLogic resources and configurations. Supported WLS versions Why Use WDT for Migration? When moving Oracle WebLogic resources from an on-premises environment to Oracle Cloud (or another WebLogic Server), WDT provides an efficient and reliable approach to: Discover and export domain configurations and application binaries. Create reusable models and archives for deployment in a target domain. Key Pre-Requisites Source System: An Oracle WebLogic Server with pre-configured resources such as: Applica...

How to Validate TDE Wallet Password in Oracle Database

How to Validate TDE Wallet Password in Oracle Database Validating the Transparent Data Encryption (TDE) wallet password is crucial, especially when ensuring that the password is correct without using the OPEN or CLOSE commands in the database. This blog post explains a straightforward method to validate the TDE password using the mkstore utility. Steps to Validate TDE Wallet Password Follow these steps to validate the TDE wallet password: Step 1: Copy the Keystore/Wallet File Navigate to your existing TDE wallet directory. Copy only the ewallet.p12 file to a new directory. If a cwallet.sso file exists, do not copy it . The absence of cwallet.sso ensures that the wallet does not use auto-login, forcing the utility to prompt for the password. Step 2: Validate Using mkstore Use the mkstore utility to check the contents of the wallet file. The mkstore utility will prompt you for the TDE wallet password, allowing you to validate its correctness. Command Syntax To display the conten...

EBS 12.2 ADOP Interview Questions With Scenarios

EBS 12.2 ADOP Interview Questions With Scenarios Note: Check the patch cycle log is important to fix any issues.  Location: $ADOP_LOG_HOME Useful Adop Commands Click here 1.What is ADOP concept in oracle apps Online patching is the most important new feature in Oracle E-Business Suite Release 12.2. It is the ability to patch a running system without having to take the system down for a significant period of time while the patches are applied. 'adop' is the utility we use to apply patches in R12.2 2.What is PATCH_TOP directory in R12.2 In R12.2 there is a new directory location environment variable called $PATCH_TOP which points to $NE_BASE/EBSapps/patch $NE_BASE points to <Non-Editioned-filesystem-directory> Download the patch into the patch top directory and unzip it. This is the default location where the adop will look for patch files. If you are planning to put patches in non-defualt location then you need to use adop parameter 'patchtop=<patch_path>' to...