Pearl script to automate SSL certificate import


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Pearl script to automate SSL certificate import
# 1  
Old 02-11-2008
Pearl script to automate SSL certificate import

Hello,

I want to automate the process of importing a SSL certificate name *.cer to cacerts through perl script. both the certificates belong to same folder.

The usual way of doing it is by executing the below command which imports the key name certnew.cer to cacerts in the same folder.

keytool -import -alias antipodes -file certnew.cer -keystore ./cacerts

Enter keystore password:
REEnter keystore password:


After this command is executed the user will be prompted for password twice similar to above. if possible I want to allow user to specify the password in an external text file from where its will be imported and entered (this is secondary though).

Any help with a code snippet or direction to resource will be appreciated.

Thank you.
# 2  
Old 02-12-2008
Wait, you want to automate it, then you are talking about user interaction, which one is true ? If user has to enter the pass, storing it in plain file would be security risk, give the user a chance to enter it with "<STDIN>. Else, you can use "print <<EOM; password password EOM" blocks.
# 3  
Old 02-12-2008
Quote:
Originally Posted by sysgate
Wait, you want to automate it, then you are talking about user interaction, which one is true ? If user has to enter the pass, storing it in plain file would be security risk, give the user a chance to enter it with "<STDIN>. Else, you can use "print <<EOM; password password EOM" blocks.
Thats is true . But I am more interested in the first part. Automatically execute the command . How would i do that?
# 4  
Old 02-12-2008
The basic idea is to write a perl script which executes a lengthy linux command.
# 5  
Old 02-12-2008
Never mind I got it
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Web Development

CronJobs issues after SSL certificate

Hello! I had a cron job running on my website, activating a php script every friday. The Php script just activated another photo to add in the gallery. It worked fine until I got an SSL certificate for my website, then everything broke. This was the command before: lynx -source... (0 Replies)
Discussion started by: AGDesign
0 Replies

2. Cybersecurity

SSL Certificate Stores

Hey everyone, I'm trying to get a lay of the land for OS and Application Certificate Stores. Can someone confirm that I have this concept right? If the application you're using say Firefox has it's own trusted CA store, it uses that exclusively. So if you're running firefox in Windows, Firefox... (4 Replies)
Discussion started by: Lost in Cyberia
4 Replies

3. Web Development

WebLogic SSL enabling ignoring CA certificate

Hi, I was trying to enable SSL cert on WebLogic 10.3 (CentOS), I don't have a third party Certificate Authority(C.A) to get the .csr file certified. Is there an alternate way that replaces the step sending .csr file to CA ? Thanks SZS (1 Reply)
Discussion started by: szs
1 Replies

4. Red Hat

SSL Certificate Renewal on Tomcat

Hi, I want to renew the ssl certificate for one of my application on tomcat without down time. I want to know what would the possible impacts for the users who currently have sessions to the app. Regards, Arumon (1 Reply)
Discussion started by: arumon
1 Replies

5. Web Development

export SSL certificate

we are doing TCP for our systems. I have a working SSL certificate on prodction webserver. Im planning to export it to our DR server for TCP purposes. However when I export based on the procedure below, it doesn't work. When I restart the DR webserver, it still says the certifcate is expired.Any... (1 Reply)
Discussion started by: lhareigh890
1 Replies

6. Cybersecurity

SSL certificate

Hi guys. I have some questions about ssl certificates. I looked at SSL providers and saw that they are providing 2 types of certificates: per server or per domain. my server host name is: srv1.example.com I have a smtp, imap, web server on this box. but all services accessed by different... (1 Reply)
Discussion started by: majid.merkava
1 Replies

7. AIX

Installing SSL certificate on AIX

Hello, I am new in UNIX, and some one asks me to install SSL certificates to allow exchange with an external system. Can someone tell how to install certificate (ex : verisignxxx.cer) on a UNIX server? Many thanks. Tibo (4 Replies)
Discussion started by: tibo51
4 Replies

8. Web Development

SSL certificate

Dear All Anyone know how to issue two different certification on apache virtualhost fyi i have one virtualhost eg 69.192.1.25:443 already signed with verisign how can i configure another virtualhost 69.192.1.25:443 which signing with another certificate which self signing. i search net not... (1 Reply)
Discussion started by: netxus
1 Replies

9. Web Development

SSL Certificate Installation problem

Hello everybody Hope somebody can help me I'm trying to install SSL Certificate on Apache/mod_ssl on Linux with Zend for Oracle. I bought and downloaded certificate from certificate from Network Solutions. Than I followed the instructions to the dot. I created a directory for certificate... (2 Replies)
Discussion started by: Trusevich
2 Replies
Login or Register to Ask a Question