Use the Analytics 2.0 APIs with Java
-
Create the certificate and private key using openssl
$ openssl req -nodes -text -x509 -newkey rsa:2048 -keyout secret.pem -out certificate.pem -days 356 -
Upload the certificate.pem in the Adobe Developer Console > Your Integration > Public keys
-
convert private key to DER format
$ openssl pkcs8 -topk8 -inform PEM -outform DER -in secret.pem -nocrypt > secret.key -
Edit the config.properties in src/main/resources/ and add the values from your Adobe Developer Console integration.
-
Build
$ mvn clean package -
Run
$ java -jar target/IMS-Client-1.0-SNAPSHOT-jar-with-dependencies.jar
See Java client resources on GitHub for example code and additional resources.