SelfSigned JKS file can be generated for a development environment but the JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry-standard format using “keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.jks -deststoretype pkcs12“ Generate Self signed JKS narayanatutorial.jks file generated, now we can convert JKS to PKCS12 using the […]
Category: Java Security
How to encrypt and decrypt password in java?
In this Java tutorial we will see about what PBE is and how we can use it in Java to encrypt and decrypt a file. In Password based encryption (PBE), a password is chosen and it is used along with a generated salt (key) to encrypt. Then the same password is used along with the […]
How To Generate a Self Signed Certificate Using Java Keytool
How To Generate a Self Signed Certificate Using Java Keytool A self signed certificate is a certificate that is signed by itself rather than a trusted authority. Since any attacker can create a self signed certificate and launch a man-in-the-middle attack, a user can’t know whether they are sending their encrypted information to the server […]