Skip to content

Instantly share code, notes, and snippets.

@wtrocki
Last active June 11, 2018 21:20
Show Gist options
  • Select an option

  • Save wtrocki/338c77f28dd9a8d4e256e130dca204ab to your computer and use it in GitHub Desktop.

Select an option

Save wtrocki/338c77f28dd9a8d4e256e130dca204ab to your computer and use it in GitHub Desktop.
Draft instruction to install certificate on the phone
{
"version": 1,
"clusterName": "https://192.168.37.1:8443",
"namespace": "myproject",
"clientId": "myapp-ios",
"services": [
{
"id": "ups-secret-myapp-ios-teknp",
"name": "ups",
"type": "push",
"url": "https://ups-myproject.192.168.37.1.nip.io/",
"config": {
"ios": {
"variantId": "dab24d57-167d-4159-b84e-1c3ea9d52457",
"variantSecret": "f93a440f-d798-4218-b421-c3c4e2e71b22"
}
}
}
]
}
-----BEGIN CERTIFICATE-----
MIIC6jCCAdKgAwIBAgIBATANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDDBtvcGVu
c2hpZnQtc2lnbmVyQDE1MjcxNzkwMTgwHhcNMTgwNTI0MTYyMzM3WhcNMjMwNTIz
MTYyMzM4WjAmMSQwIgYDVQQDDBtvcGVuc2hpZnQtc2lnbmVyQDE1MjcxNzkwMTgw
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDg7UyAmCyoAUiJN3b8HB+t
507ttwJlry9Sf8rIWh0HTEiorQzCfXRzBgc26d1CQsHA3zE+VwmtiB6wR00hNwnI
S1YCdch4KESIOzcj/OkbZVXzB7z5zo0DRI3ejVWyXPzbgrtPPQaZ4aRY5NR2VsEJ
95lDW1PiCMA5bLxaYXwMaYJ66h6EFEO6nlFtnjyzFs3faz5b3Jp/gm+3ncgelNMJ
CN42f+F5gcvFWZEsE7ZkvNzXuYW2xUH55FqGQw2IY/hLWVTzuCFkjL1jxgJxwUUl
RHP8eiQ/fOgxojlUicDExTN94Zy7vdCgbxddRpp92gmSyitwdXsvPbHJFbjOZ84l
AgMBAAGjIzAhMA4GA1UdDwEB/wQEAwICpDAPBgNVHRMBAf8EBTADAQH/MA0GCSqG
SIb3DQEBCwUAA4IBAQAY4KZmy2+3LxJfO7PJIYjs9fxyPZg1tbM459oRhSRbbOaf
PfXzzswyN83DBX8fDgZz0eo8xm+0IF8qiTkU+f3DYGtHsvUy9u5jcJFbLWsIN2Kv
bGakRVvAjDCA5JcjTprdsC363+pnfCjsSyswilZV1M6WfGo9qkw+S3oFImum+EuX
TfLbXCQt6vQXKAkEQbD+5pmyLFikf4w5Qo1UUF7ar+8RS7cWM6tdmdSHrTapXv4n
ZMGp2PW8//cFL98DgeJPdkXwaY4gQrXzevV5dPv+KKe1WU20ywJZ0d8PQ70SHtNQ
72OMfSlgi5KUcK+eI6zrxy9Xm2ch7ynhbByKCisx
-----END CERTIFICATE-----

This is some instructions for how to to extract the root cert for the openshift route and install on a real device.

openssl s_client -showcerts -connect host:port

For example

openssl s_client -showcerts -connect 192.168.37.1:8443

The last cert in the format of the one in this gist will be the root cert. Ensure to catch all of it from the lines --BEGIN CERTIFICATE--- to the corresponding line for end of cert.

Save Certificate as openhsift.crt and add it to the gist on github.

To add this cert, browse to the gist on mobile device and view on desktop site, then got to raw & you should be able to install this on the device then.

Once this is installed you need to go to trust it:

Settings > General > About > Certificate Trust Settings. Under "Enable full trust for root certificates," turn on trust for the certificate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment