Restore adkeystore.dat

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

Restore adkeystore.dat

Oracle1977
Hi,
Good day.
I want to deploy some custom OAF pages on Oracle 12.2.4 during the deployment we had some issue and Oracle SR owner request to run the command below
adjkey –initializ
after I go thru the note “Enhanced Jar Signing for Oracle E Business Suite (Doc ID 1591073.1)”
I realized that the above command will re create the adkeystore.dat which contain my java signature.
My question:
How can I restore my original adkeystore file? Can I just restore it from a backup? mean I just copy the folder “<JRI_DATA_LOC> <fs_ne>/EBSapps/appl/ad/admin”
or is there any further steps?
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
Hi,

Read this note : How To Un-sign Jar Files (Doc ID 1635107.1)
it will help you . It is like un-signing jar files;

Read ->

When running adjkey -initialize, it will backup the adkeystore.dat and the adsign.txt file.

To get back to the self-signed certificate that Oracle Delivers with EBS Forms.
 If you still have the original adkeystore.dat and adsign.txt:
- Backup the existing adkeystore.dat and adsign.txt
- Restore the original adkeystore.dat and adsign.txt from backup
- Run the admin to force generate jar files to restore to the original Oracle Signed jar files.


If you do not have the original adkeystore.dat, and you want to un-sign the jar files with a unknown signature:
- Backup the existing adkeystore.dat and adsign.txt
- Run adjkey -initialize to recreate the keystore.dat and adsign.txt
- Use adadmin to force sign the jar files


Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

Oracle1977
This post was updated on .
Thanks for the prompt response.

I ran the command twice :)

adjkey -initialize

no back up in the same server, but I got the backup from the tape!! How can I restore it now?
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
So, you don't have adkeystore.dat then..
Take the adkeystore.dat from the patch filesystem and copy it to the run filesystem.

Here I show an example prompt; you can see the adkeystore.dat files from both fs1 and fs2

[applmgr@demoorcl admin]$ pwd
/u01/oracle/CLONE/fs1/EBSapps/appl/admin
[applmgr@demoorcl admin]$ ls -al adkeystore.dat
-rwxr-xr-x 1 applmgr oinstall 3507 Jun  8 17:20 adkeystore.dat
[applmgr@demoorcl admin]$ cd /u01/oracle/CLONE/fs2/EBSapps/appl/admin
[applmgr@demoorcl admin]$ ls -al adkeystore.dat
-rwxr-xr-x 1 applmgr oinstall 3507 Jan 13  2014 adkeystore.dat

Alternatively,

follow the same document, In this scenario, the restore means unsigning.

Here it says ->

If you do not have the original adkeystore.dat, and you want to un-sign the jar files with a unknown signature:

- Backup the existing adkeystore.dat and adsign.txt
- Run adjkey -initialize to recreate the keystore.dat and adsign.txt
- Use adadmin to force sign the jar files
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

Oracle1977
This post was updated on .
I will get back to you.


Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

Oracle1977
I found the adkeystore in the run and patch folders.....how can I restore it from those two folders?

Do I just copy it to fs_ne folder "/u01/oracle/PROD/fs_ne/EBSapps/appl/ad/admin"?
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
No.
you can do the following;

mv your current adkeystore and adsign files as follows;

[applmgr@demoorcl admin]$ mv adkeystore.dat adkeystore.dat.bck
[applmgr@demoorcl admin]$ mv adsign.txt adsign.txt.bck

Then run  adjkey -initialize.
Supply apps user and its password and don't give any other input just keep pressing enter.
Your new adkeystore file will be recreated after this.

mv 

2016-07-14 14:41 GMT+03:00 Oracle1977 [via Erman Arslan's Oracle Forum] <[hidden email]>:
I found the adkeystore in the run and patch folders.....how can I restore it from those two folders?

Do I just copy it to fs_ne folder "/u01/oracle/PROD/fs_ne/EBSapps/appl/ad/admin"?



If you reply to this email, your message will be added to the discussion below:
http://erman-arslan-s-oracle-forum.2340467.n4.nabble.com/Restore-adkeystore-dat-tp1165p1173.html
To start a new topic under EBS 12.2, email [hidden email]
To unsubscribe from Erman Arslan's Oracle Forum, click here.
NAML



--

Erman Arslan 

Applications and Database Operations Manager


Oracle Certified Expert

Certified Exadata Administrator

Certified Linux Administrator

Author for Apress

MBA


Blog:      ermanarslan.blogspot.com

Forum:  http://ermanarslan.blogspot.com/p/forum.html

 

M: 05301567803

Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
I said press enter but you can also supply the following information .. It will be better:

CN=hostname, OU=apps, O=hostname, L=LOCALITY, ST=STATE, C=US


Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
hostname should be your hostname  , that is the server name.
In my case, it is demoorcl.
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

Oracle1977
but we have purchase a certificate long time ago and and our jar files are signed using the previous adkeystore!!!! I want to have the same signature across the standard jar files and custom jar files.
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

Oracle1977
we have many custom OAF pages and they are working fine but we added a new page and during the deployment we run the command adjkey - initilize by mistake and now we want to restore our original adkeystore file.
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
If you dont have backup, then you will have to reimport your old certificate to the newly created adkeystore file.
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
Also, if you have a clone environment , you can take the certificate from there.

Also, you can open an OAF page and may export the code signing certificate from your Internet browser .. At least you can try...
Check this: https://www.digicert.com/code-signing/exporting-code-signing-certificate.htm , give it a try.
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

Oracle1977
I asked our system administrator to restore the folder fs_ne? after that what can I do?
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
You will restore your adkeystore.dat file from backup and then you are good to go.
You can follow the following note for your new deployment: Developing and Deploying Customizations in Oracle E-Business Suite Release 12.2 (Doc ID 1577661.1)
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
Also read this: How to deploy customizations that are created in the package oracle.apps.xxprod.* rather than xxprod.oracle.apps.* or xxprod.oracle.apps.xxprod.* on EBS 12.2.X? (Doc ID 1609939.1)

Detailed steps are given there.



Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

Oracle1977
Yes I did, now the system administrator has restored the adkeystore.dat file to my local machine.......what I should do with it? can I just copy it to the server?
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator

Yes

14 Tem 2016 22:37 tarihinde "Oracle1977 [via Erman Arslan's Oracle Forum]" <[hidden email]> yazdı:
Yes I did, now the system administrator has restored the adkeystore.dat file to my local machine.......what I should do with it? can I just copy it to the server?


If you reply to this email, your message will be added to the discussion below:
http://erman-arslan-s-oracle-forum.2340467.n4.nabble.com/Restore-adkeystore-dat-tp1165p1188.html
To start a new topic under EBS 12.2, email [hidden email]
To unsubscribe from Erman Arslan's Oracle Forum, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

Oracle1977
I Copied the file to the original folder and run adcgnjar command, and the custom page got singed and it's working fine now.
Reply | Threaded
Open this post in threaded view
|

Re: Restore adkeystore.dat

ErmanArslansOracleBlog
Administrator
Good to hear :)