Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.53 KB

CertCreationQuickRef.md

File metadata and controls

47 lines (29 loc) · 1.53 KB

DataONE Certificate Creation - Quick Reference Guide

(for full details, see the README file)

  1. Determine the subject to be used

    • For existing, expired certs, ask for the subject and issuer lines (openssl x509 -text -in <yourcertname.pem>)
  2. Pull and mount the latest version of the sparsebundle

  3. Pull the latest version of this repo (DataONE/ca)

  4. Create the cert. e.g.:

    ./ca  -c Prod urn:node:MY_NODE_ID
    # or
    ./ca  -c Test urn:node:TestMY_NODE_ID
  1. Zip and upload to server for retrieval via ORCID login (eg with orcid https://orcid.org/0000-0002-6666-999X)
./publish_cert_orcid    0000-0002-6666-999X    ./DataONEProdIntCA/certs/urn:node:MY_NODE_ID.pem
  1. DELETE THE PRIVATE KEY FILE (we no longer keep a copy; a new cert can be generated easily, if key is lost)
    rm ./DataONEProdIntCA/private/*.key
    # or
    rm ./DataONETestIntCA/private/*.key
  1. git add new & changed files (index*, serial*, certs/, newcerts/, req/; NOT *.key! Should have been deleted!) and push your changes to this repo (DataONE/ca)

  2. Cleanup: add a calendar reminder for 1 month hence, to delete the cert zipfile from project.dataone.org (in directory /var/www/project/html/o/)! Warn the client now, that it will be deleted then.

FYI:

  • There should be no sparsebundle changes as a result of this process; however, MacOS may modify the metadata, so it shows as changed. It's safe to git checkout -- the sparsebundle and ignore the change.