Security/ProxyFileFormat

From Globus

The Globus Toolkit expects files containing credentials in /tmp/x509up_u<uid> or $X509_USER_PROXY to be of the following format: PEM-encoded certificate, followed by PEM-encoded private key, followed by zero or more PEM-encoded certificates that form a chain from the first certificate to an end-entity certificate.

The PEM encoding is a base64 encoding of the DER encoding of the certificate and PKCS#1 RSAPrivateKey with additional header and footer lines.

The order of the PEM blocks in the file is significant. The matching certificate and private key must appear first, followed by the certificate chain starting from the next certificate and ending with the end entity certificate.

In the case the first certificate is an end entity certificate (i.e., the end entity certificate is being used directly without any proxy certificates), then only the end entity certificate and private key appear, without any additional certificates. (In this case the "proxy file" contains an "end entity credential" rather than a "proxy credential".)

Examples

Proxy Credential

-----BEGIN CERTIFICATE-----
MIICcDCCAhqgAwIBAgIEU6SeXjANBgkqhkiG9w0BAQQFADCBojENMAsGA1UEChME
R3JpZDETMBEGA1UECxMKR2xvYnVzVGVzdDEmMCQGA1UECxMdc2ltcGxlQ0EtY2Fu
dmFzLm5jc2EudWl1Yy5lZHUxFjAUBgNVBAsTDW5jc2EudWl1Yy5lZHUxEzARBgNV
BAMTCkppbSBCYXNuZXkxEzARBgNVBAMTCjE3OTQxODMyNTgxEjAQBgNVBAMTCTYw
OTUyMTIwNDAeFw0wODAzMTgxNDMwNTZaFw0wODAzMTgxNTM1NTJaMIG3MQ0wCwYD
VQQKEwRHcmlkMRMwEQYDVQQLEwpHbG9idXNUZXN0MSYwJAYDVQQLEx1zaW1wbGVD
QS1jYW52YXMubmNzYS51aXVjLmVkdTEWMBQGA1UECxMNbmNzYS51aXVjLmVkdTET
MBEGA1UEAxMKSmltIEJhc25leTETMBEGA1UEAxMKMTc5NDE4MzI1ODESMBAGA1UE
AxMJNjA5NTIxMjA0MRMwEQYDVQQDEwoxNDAzMjk3Mzc0MFwwDQYJKoZIhvcNAQEB
BQADSwAwSAJBAMc0n9W1E1KjK6saavXXZ/QhLjJ/TK40uW29l/wduSrHWCu1e5Kr
6r0Oi/4KEjhk8+sgH7b0uql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w=
-----END CERTIFICATE-----

The example above contains:

  • RFC 3820 proxy certificate with Subject: O=Grid, OU=GlobusTest, OU=simpleCA-canvas.ncsa.uiuc.edu, OU=ncsa.uiuc.edu, CN=Jim Basney, CN=1794183258, CN=609521204, CN=1403297374
  • private key corresponding to the above proxy certificate
  • RFC 3820 proxy certificate with Subject: O=Grid, OU=GlobusTest, OU=simpleCA-canvas.ncsa.uiuc.edu, OU=ncsa.uiuc.edu, CN=Jim Basney, CN=1794183258, CN=609521204
  • RFC 3820 proxy certificate with Subject: O=Grid, OU=GlobusTest, OU=simpleCA-canvas.ncsa.uiuc.edu, OU=ncsa.uiuc.edu, CN=Jim Basney, CN=1794183258
  • RFC 3280 end entity certificate with Subject: O=Grid, OU=GlobusTest, OU=simpleCA-canvas.ncsa.uiuc.edu, OU=ncsa.uiuc.edu, CN=Jim Basney

End Entity Credential

-----BEGIN CERTIFICATE-----
MIIEUjCCA7ugAwIBAgIBAzANBgkqhkiG9w0BAQ0FADBoMQ0wCwYDVQQKEwRHcmlk
MRMwEQYDVQQLEwpHbG9idXNUZXN0MScwJQYDVQQLEx5zaW1wbGVDQS1wa2lsYWIy
Lm5jc2EudWl1Yy5lZHUxGTAXBgNVBAMTEEdsb2J1cyBTaW1wbGUgQ0EwHhcNMTAw
OTEzMTQwMjM2WhcNMTAwOTE0MDIwNzM2WjBfMQ0wCwYDVQQKEwRHcmlkMRMwEQYD
VQQLEwpHbG9idXNUZXN0MScwJQYDVQQLEx5zaW1wbGVDQS1wa2lsYWIyLm5jc2Eu
dWl1Yy5lZHUxEDAOBgNVBAMTB2piYXNuZXkwggEiMA0GCSqGSIb3DQEBAQUAA4IB
DwAwggEKAoIBAQCjnVpS0bh4Pgmg5kuyFo2mHzKNolnYUlBJdjAWDh5AoRaij0n2
aAdypXGs9Nud/11ei4lfrZVhbKZUznMeFJuXr0qVzXUDEwsj61QAyF0aK5JZtmYH
OkKTpUnyyRirtfCHcubDYu4QAkc8uIYlWW/7sn3mhqR3Lg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DU0Us0CWf5xBMaJPM
Vs8F1J/emCFCnmMKr5ZAsqeCkkr0DrLCd2WWFYm933Tw6l70+HnYrtZNeqbuGaQh
/tWUYMYvxoVz17OXmqWJmCMCgYB2e7MO3ACRIgJxVLO7Sj5CwtYpRdt6tp1Dqa8H
OcybQAG4RD64+Y5G3k94LaQfLHFJtEEV/q8CJGOktWRQS8iLbvJTNOSCS4x4p4py
fAdAgmWJPD2GkmQhFYYEfF9dZwF7pztO9cl+ZlqljgPmJm6HWnlbBqShzMMAQUQ1
+zTynQKBgFqnJ2yjPHZom2uNi7fi8J3nnATZroQattGExxoZmgd5TgFEKThulp6P
77ZyVyq81pGe1ArhJZlu35Dvy8LU+oVP/GoJF7trgsbQXUxhbCbE8Zl74cf/rcmP
8JwYAK1cuXyUDguMlciTfwvMeWExO3xYa8185IUinwW6g5j+ng41
-----END RSA PRIVATE KEY-----

The example above contains:

  • RFC 3280 end entity certificate with Subject: O=Grid, OU=GlobusTest, OU=simpleCA-pkilab2.ncsa.uiuc.edu, CN=jbasney
  • private key corresponding to the above end entity certificate

See also Security/ProxyCertTypes.

Personal tools
Execution Projects
Information projects
Distribution Projects
Documentation Projects
Deprecated