"/usr/java/latest/jre/lib/security/cacerts -storepass changeit"
- name: copy cert to home
copy:
src: my_cert_file.crt
dest: /home/ec2-user/my_cert_file.crt
owner: root
group: root
mode: 0644
- name: check for domain SSL cert
shell: /usr/java/latest/bin/keytool -keystore /usr/java/latest/jre/lib/security/cacerts -storepass changeit -alias trusted_cert -list
register: trusted_cert
- name: install SSL cert into cacerts
shell: /usr/java/latest/bin/keytool -import -keystore /usr/java/latest/jre/lib/security/cacerts -storepass changeit -file /home/ec2-user/my_cert_file.crt -noprompt -alias trusted_cert
when: trusted_cert.stdout.find('trustedCertEntry') == 1
failed_when:
- "'does not exist' not in trusted_cert.stderr"
- "trusted_cert.rc != 0"
Also in C++:
- how to search in directory files in ubuntu
- Project directory 'C:\Users\Ajmal .M\GitHub\teammates' is not part of the build defined by settings file 'C:\Users\Ajmal .M\settings.gradle'. If this is an unrelated build, it must have its own settings file.
- command to split html tags in lines
- install reach router
- mariadb galera cluster exists on first sync
- git commit and add in one command
- copying folders in git bash
- list all available CLI commands windows
- git no ssl
- sudo gem install cocoapods-deintegrate cocoapods-clean
- linux untar
- what is the ipconfi kali linux
- install terminator ubuntu
- yarn install No such file or directory: 'install'
- lsof port
- print environment variables linux
- install teamviewer ubuntu 18
- install libreoffice ubuntu 18.04
- react navigation react native
- git checkout -b flag
- how to install intellij in mac
- ionic link app
- bash return unique lines starting at nth field
- give full permission to folder and subfolders in linux