bitrise-io/identity-info-server

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

identity-info

Returns parsed JSON of *.mobileprovision and *.p12.

Server Configuration
  1. Export PORT environment variables.
rt PORT=3000
  1. Run the server
un main.go
Test Configuration
  1. After Server Configuration export the following environment variables
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"
  1. Run the test
est ./...
Usage
POST /certificate

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

POST /profile

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.