Showing posts with label Private key. Show all posts
Showing posts with label Private key. Show all posts

Monday, November 11, 2019

HTTPS connection using CURL command

When you need to try HTTP connection using CURL command you will return below error,

* Issuer certificate is invalid: 
* NSS error -8156
* Closing connection

Here you need to specify the cert in curl command using --cacert. before that you need to get the cert for your server. You can try below command to get cert.

openssl s_client -connect <host>:<port>

Eg: openssl s_client -connect localhost:8243

Now you can see the ssl certificate. You can extract the text between "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" including these two line and save as ssl.crt.

Now you can trigger HTTPS request according to below format

curl -X POST https://localhost:8243/xxxx/v1/test  -d '{}' --cacert /path/to/ssl.crt

Sunday, November 4, 2018

Import SSH private key file to Xshell

Once you generate SSH key pair to connect to a server using putty and you are going to import it into Xshell you will be noticed below notification.













You can follow below steps to import ssh private key to Xshell successfully.

  1. Open putty-keygen and import the private key.


















2. Once loaded, Go to "Conversions" and then "Export OpenSSH Key"




















3. Then choose a location to save the private key file and click "Save".

4. You will be able to import above private key file to Xshell.

File Sharing using NFS in GKE Cluster

 File Sharing using NFS in GKE Cluster There was a requirement to create common file sharing location which should be accessible by specific...