- Go to the Alfresco Support Portal.
Download the related JAR file:
Create a public key and private key:
Navigate to the folder of the downloaded JAR and run the following command to create the key pair in the current path:
java –jar sap-content-connector-encryptor-1.0.jar init -path .
Two files are created:
- sapContentConnectorPrivateKey.pri (private key)
- sapContentConnectorPublicKey.pub (public key)
Create an encrypted password:
java -jar sap-content-connector-encryptor-1.0.jar encrypt -password H3ll0W0rlD112! -publicKey ./sapContentConnectorPublicKey.pub
The encrypted password will be printed to the console, for example:
Since it's already surrounded by the required ENC() function, it can be copied and used as-is.
Upload the private key file to Alfresco Content Services.
To be able to resolve the password, the previously created private key (sapContentConnectorPrivateKey.pri) must be uploaded to the application server root directory (such as /usr/local/tomcat/sapContentConnectorPrivateKey.pri).
Provide encrypted password.
To use the encrypted password, paste it as a value for the required properties in the alfresco-global.properties file.
integrations.sap.system.1.al.alfrescoPassword = ENC(XbfE4Z112==)
- Restart the application server since alfresco-global.properties has changed.