new SSL certificate

needs needs
needs needs used Ask the Experts™
on
i have a Ubuntu apache2 web server with ssl certificate .Every time when i restart apache ask password.
I found a script and work well .

SSLPassPhraseDialog exec:/path/to/passphrase-script

#!/bin/sh
echo "mypassphrase here"

Now certificate is old and got new certificate with new challange passord. Can you please explain me what do i need to do?  can i change my script easly or i need a new script ? or can i add new password under old one  like:

#!/bin/sh
echo "mypassphrase here"
echo "myNEWpassphrase here"



Thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Prabhin MPDevOps Engineer
Distinguished Expert 2018

Commented:
The best thing is to remove the password from the  certificate file , so no longer the script is required.
Execute the following command to remove the password from the file. and change the filename in the SSL configuration file.




openssl rsa -in [file1.key] -out [file2.key]




Hope you understood what I'm saying .

Author

Commented:
Sorry i don not understamd why remove ? old one works with Password.

can i edit   passphrase-script Password ? and i write instead old one new one and save it. or i cant edit it?
DevOps Engineer
Distinguished Expert 2018
Commented:
yeah you edit the passphrase in the script.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
can i do that working if comment old Password?

#!/bin/sh
#echo "mypassphrase here"
echo "myNEWpassphrase here"

Author

Commented:
i mean
nano /etc/papiersize  and save

#!/bin/sh
#echo "mypassphrase here"
echo "myNEWpassphrase here"

Author

Commented:
sorry i am very new on Linux
Prabhin MPDevOps Engineer
Distinguished Expert 2018

Commented:
yes correct

Author

Commented:
ok thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial