bash script input password automatically.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

I have the below commands to generate keystore.pkcs12 and keystore.jks
files on CentOS Linux release 7.9.2009 (Core)

openssl pkcs12 -export -clcerts -in fullchain1.pem -inkey privkey1.pem -out
keystore.pkcs12 -name javasso
keytool -importkeystore -srckeystore keystore.pkcs12 -srcstoretype pkcs12
-destkeystore keystore.jks -deststoretype jks -alias javasso

I have created a small shell script to generate both keystore.pkcs12 and
keystore.jks files. It prompts for a password. Is there a way to key in a
password without prompt or non-interactive way?
For example password is stored in a file and the bash script will source it
instead of manually typing the password.

Please suggest. Thanks in advance.

Best Regards,

Kaushal
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux