Name: identity-info-server
Owner: Bitrise
Description: null
Created: 2017-10-16 12:14:07.0
Updated: 2017-10-18 11:08:43.0
Pushed: 2017-12-05 14:53:28.0
Homepage: null
Size: 403
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Returns parsed JSON of *.mobileprovision
and *.p12
.
PORT
environment variables.rt PORT=3000
un main.go
rt TEST_PROFILE_PATH="/path/to/the/profile.mobileprovision"
rt TEST_NO_PW_CERTIFICATE_PATH="/path/to/the/password/less/cert.p12"
rt TEST_CERTIFICATE_PATH="/path/to/the/cert/with/password.p12"
rt TEST_CERTIFICATE_PASSWORD="my_cert_password"
rt TEST_PROFILE_URL="http://url/to/the/profile.mobileprovision"
rt TEST_CERTIFICATE_URL="http://url/to/the/cert/with/password.p12"
rt TEST_CERTIFICATE_URL_PASSWORD="my_cert_password"
est ./...
Request body: both key and data are in base64 format. Leave empty or do not include
key
if no any."key" : "FGZ...fKvus6/ee=", "data" : "5SN...jDHboV/zs="
Response body: the parsed certificate in JSON format
For example:
curl -X POST -d “{"data":"$(base64 /path/to/cert.p12)","key":"$(echo “cert_pass” | base64 -)"}” http://localhost:$PORT/certificate
curl -X POST -d “{"data":"$(echo “http://url.to/the/cert.p12” | base64 -)","key":"$(echo “cert_pass” | base64 -)"}” http://localhost:$PORT/certificate
Request body: data is in base64 format.
"data" : "5SN...jDHboV/zs="
Response body: the parsed profile in JSON format
For example:
curl -X POST -d “{"data":"$(base64 /path/to/profile.mobileprovision)"}” http://localhost:$PORT/profile
curl -X POST -d “{"data":"$(echo “http://url.to/the/profile.mobileprovision” | base64 -)"}” http://localhost:$PORT/profile