A Java library and tool to interact with an EPIC v2 or Handle v8 PID service.
$ mvn clean package
$ java -jar cli/target/epicify.jar
java -jar epicify.jar <options>
new handle : <path to config> new <suffix>? <uri>
get handle : <path to config> get <prefix/suffix>
update handle: <path to config> upd <prefix/suffix> <uri>
delete handle: <path to config> del <prefix/suffix>
NOTE: there might be a nodelete policy active!
Configuration file for a Handle v8 PID service looks like
<PIDService>
<host>https://[server:port]/api/handles/</host>
<HandlePrefix>11.T12345</HandlePrefix>
<private_key>user_private_key.pem</private_key>
<server_certificate_only>server_certificate_if_selfsigned.crt</server_certificate_only>
<private_certificate>user_certificate.pem</private_certificate>
<status>test</status>
</PIDService>
NOTES:
private_key
,private_certificate
are required- in case of selfsigned server certificate, use this command to get the server certificate and save it as a
.crt
file
$ openssl s_client -connect [server:port] -showcerts
- change
test
intoproduction
Where a config looks like this:
<PIDService>
<URI>http://www.pidconsortium.eu/</URI>
<HandlePrefix>12345</HandlePrefix>
<hostName>www.pidconsortium.eu</hostName>
<userName>epic</userName>
<password>test</password>
<email>[email protected]</email>
<status>test</status>
</PIDService>
NOTES:
- change
test
intoproduction
NOTE: EPICify is based on work by Jan Pieter Kunst and others @ http://www.meertens.knaw.nl/ontwikkeling
epicify (3)