| 88 | |
| 89 | {{{ |
| 90 | == Sending the CA data == |
| 91 | |
| 92 | Convert a CA file to hex: |
| 93 | {{{ |
| 94 | python -c "import sys,binascii;print binascii.hexlify(open(sys.argv[1]).read())" ca.crt |
| 95 | }}} |
| 96 | Convert hex back to data to verify (only part of the data shown here): |
| 97 | {{{ |
| 98 | python -c "import sys,binascii;print binascii.unhexlify(sys.argv[1])" \ |
| 99 | 2d2d2d2d2d424547494e2043455254494649434154452d2d2d2d2d0a4d4949 |
| 100 | }}} |
| 101 | Use it directly in the xpra command: |
| 102 | {{{ |
| 103 | xpra attach ssl:localhost:10000 \ |
| 104 | --ssl-ca-data=2d2d2d2d2d424547494e...4452d2d2d2d2d0a |
| 105 | }}} |
| 106 | Alternatively, place all of these in a connection file you can just double click on: |
| 107 | {{{ |
| 108 | echo > ssl-test.xpra <<EOF |
| 109 | host=localhost |
| 110 | autoconnect=true |
| 111 | port=10000 |
| 112 | mode=ssl |
| 113 | ssl-ca-data=2d2d2d2d2d424547494e...4452d2d2d2d2d0a |
| 114 | EOF |
| 115 | }}} |
| 116 | }}} |