Followers

Showing posts with label SECURITY. Show all posts
Showing posts with label SECURITY. Show all posts

Friday, January 22, 2021

Import p7b file to Java Keystore using keytool

Step1:

Convert p7b file fomrat to pem format using openssl

command:

openssl pkcs7 -inform der -print_certs -in file.p7b -out file.pem


Step2:

Import generated pem file into JKS file using keytool command

command:

C:\CICD>keytool -import -alias file -keystore filestore.jks -file file.pem



Thursday, June 22, 2017

How to create CSR with SANs using keytool



Step1: Generating the Key

keytool -genkey -keystore Identity_trust.jks -storepass srinfosolutions -alias 192.168.0.3 -validity 365 -keyalg RSA -keysize 2048 -dname "CN=192.168.0.3,OU=IT,O=Dell USA L.P.,L=SRInfo,ST=Texas,C=US" ext SAN=dns:192.168.0.4,dns:192.168.0.5

step2 - create request file (.csr) file usinng keytool command 

keytool -certreq -alias 192.168.0.3 -storepass srinfosolutions -keyalg RSA -file certreq.csr -keystore Identity_trust.jks

Wednesday, August 20, 2014

RSA in security

RSA is one of the first practicable public-key cryptosystems and is widely used for secure data transmission. In such a cryptosystem, the encryption keyis public and differs from the decryption key which is kept secret. In RSA, this asymmetry is based on the practical difficulty of factoring the product of two large prime numbers