Skip to content

bitrise-io/identity-info-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

identity-info

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

Server Configuration

  1. Export PORT environment variables.
export PORT=3000
  1. Run the server
go run main.go

Test Configuration

  1. After Server Configuration export the following environment variables
export TEST_PROFILE_PATH="/path/to/the/profile.mobileprovision"
export TEST_NO_PW_CERTIFICATE_PATH="/path/to/the/password/less/cert.p12"
export TEST_CERTIFICATE_PATH="/path/to/the/cert/with/password.p12"
export TEST_CERTIFICATE_PASSWORD="my_cert_password"
export TEST_PROFILE_URL="http://url/to/the/profile.mobileprovision"
export TEST_CERTIFICATE_URL="http://url/to/the/cert/with/password.p12"
export TEST_CERTIFICATE_URL_PASSWORD="my_cert_password"
  1. Run the test
go test ./...

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published