Categorygithub.com/bitrise-io/identity-info-server
modulepackage
0.0.0-20241127081945-916914e7847a
Repository: https://github.com/bitrise-io/identity-info-server.git
Documentation: pkg.go.dev

# README

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

# Constants

ProfileListingTypes ...
ProfileTypes ...
CertificateListingPlatforms ...
CertificateType ...
CertificateListingTypes ...
CertificateType ...
CertificateListingTypes ...
ProfileListingTypes ...
ProfileTypes ...
CertificateType ...
CertificateListingTypes ...
ProfileListingTypes ...
CertificateType ...
CertificateListingTypes ...
ProfileTypes ...
ProfileListingTypes ...
ProfileTypes ...
ProfileListingTypes ...
ProfileTypes ...
CertificateListingPlatforms ...
ProfileListingPlatforms ...
CertificateType ...
CertificateListingTypes ...
CertificateListingPlatforms ...
ProfileListingPlatforms ...
CertificateType ...
CertificateListingTypes ...
CertificateType ...
CertificateListingTypes ...
ProfileListingTypes ...
ProfileListingTypes ...
ProfileListingTypes ...
ProfileListingTypes ...
CertificateListingPlatforms ...
CertificateListingTypes ...
CertificateType ...
ProfileListingPlatforms ...
ProfileListingTypes ...
ProfileTypes ...

# Structs

CertificateInfoModel ...
CertificateInformation ...
ProvisioningProfileInfoModel ...
RequestModel ...
Service ...

# Type aliases

CertificateListingPlatform ...
CertificateListingType ...
CertificateType ...
ProfileListingPlatform is the Provisioning Profile platform to be used when listing profiles.
ProfileListingType is the Provisioning Profile type to be used when listing profiles.
ProfileType ...