DMAAP-BC - Update Release Note Date
[dmaap/buscontroller.git] / certs / README
1 Procedure to create pem files for curl use within dbc-client container.
2
3 1. Download certificate artifacts from AAF
4 1b.  Remember to run the showpass step to capture the cleartext passwords.  Assume this will be in a file with suffix .showpass.
5 1c.  Add AAF artifacts to buscontroller project under buscontroller/certs
6
7 2. Display passwords in showpass file
8
9         ubuntu@dgl-rancher:~/dublin/buscontroller/certs$ cat *showpass
10         cadi_truststore_password=8b&R5%l$l:@jSWz@FCs;rhY*
11         cadi_keystore_password_jks=Y@Y5f&gm?PAz,CVQL,lk[VAF
12         cadi_key_password=2U[iOZzMHI:.#tdCwlBqc;}S
13         cadi_keystore_password=2U[iOZzMHI:.#tdCwlBqc;}S
14         cadi_keystore_password_p12=2U[iOZzMHI:.#tdCwlBqc;}S
15         Challenge=9H83TErBrN!u?;]1iCK@&69?
16         2019-03-22T17:38:32.447+0000: Trans Info
17                  REMOTE Show Password 2214.6292ms
18
19 3. copy the value for cadi_keystore_password_p12 into clipboard
20
21 4. Use openssl to create pem files.  NOTE: paste pwd from step 3 to all answers.
22
23         ubuntu@dgl-rancher:~/dublin/buscontroller/certs$ openssl pkcs12 -in ./org.onap.dmaap-bc.p12 -out ca.pem -cacerts -nokeys
24         Enter Import Password:
25         MAC verified OK
26
27         ubuntu@dgl-rancher:~/dublin/buscontroller/certs$ openssl pkcs12 -in ./org.onap.dmaap-bc.p12 -out client.pem -clcerts -nokeys
28         Enter Import Password:
29         MAC verified OK
30
31         ubuntu@dgl-rancher:~/dublin/buscontroller/certs$ openssl pkcs12 -in ./org.onap.dmaap-bc.p12 -out key.pem -nocerts
32         Enter Import Password:
33         MAC verified OK
34         Enter PEM pass phrase:
35         Verifying - Enter PEM pass phrase:
36
37 5. Confirm new pem files are created: 
38
39         ubuntu@dgl-rancher:~/dublin/buscontroller/certs$ ls -l
40         total 52
41         -rw-rw-r-- 1 ubuntu ubuntu 1759 Apr  3 14:52 ca.pem
42         -rw-rw-r-- 1 ubuntu ubuntu 1791 Apr  3 14:53 client.pem
43         -rw-rw-r-- 1 ubuntu ubuntu 1997 Apr  3 14:55 key.pem
44         -rw-rw-r-- 1 ubuntu ubuntu 1159 Apr  3 11:59 org.onap.dmaap-bc.cred.props
45         -rw-rw-r-- 1 ubuntu ubuntu  751 Apr  3 11:59 org.onap.dmaap-bc.crontab.sh
46         -rw-rw-r-- 1 ubuntu ubuntu 3613 Apr  3 11:59 org.onap.dmaap-bc.jks
47         -rw-rw-r-- 1 ubuntu ubuntu 2074 Apr  3 11:59 org.onap.dmaap-bc.keyfile
48         -rw-rw-r-- 1 ubuntu ubuntu  289 Apr  3 11:59 org.onap.dmaap-bc.location.props
49         -rw-rw-r-- 1 ubuntu ubuntu 4151 Apr  3 11:59 org.onap.dmaap-bc.p12
50         -rw-rw-r-- 1 ubuntu ubuntu  629 Apr  3 11:59 org.onap.dmaap-bc.props
51         -rw-rw-r-- 1 ubuntu ubuntu  365 Apr  3 11:59 org.onap.dmaap-bc.showpass
52         -rw-rw-r-- 1 ubuntu ubuntu 1413 Apr  3 11:59 org.onap.dmaap-bc.trust.jks
53
54 6. pem files can now be included in docker image
55