JBoss.orgCommunity Documentation
Default OAuth key configuration
In eXo Platform, OAuth gadgets use a OAuth key to authorize with external service providers. There is always a default key defined in the oauthkey.pem file. This key will be used in case the OAuth gadgets do not indicate a key.
If you are using Tomcat, the oauthkey.pem file is found at the TOMCAT_HOME/gatein/gadgets path.
If you are using Jboss, the oauthkey.pem file is found at the JBOSS_HOME/server/<PROFILE>/conf/gatein/gadgets path.
It is strongly recommended that you create your own oauthkey.pem file by using the openssl tool and some commands as follows:
openssl req -newkey rsa:1024 -days 365 -nodes -x509 -keyout testkey.pem -out testkey.pem -subj '/CN=mytestkey' openssl pkcs8 -in testkey.pem -out oauthkey.pem -topk8 -nocrypt -outform PEM
After creating the new oauthkey.pem file, you can use it to replace the default oauthkey.pem file in the gatein/gadgets/ folder.