Skip to content

Query on Gitlab and Rocket Chat on Edgeless Systems #2945

Answered by derpsteb
prahaladd asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @prahaladd,
thanks for your interest!

The value that goes into pinnedPubkey is the base64 encoded sha256 hash of the public key you want to pin. To generate the value you could do this:

$ echo | openssl s_client -servername gitlab.edgeless.systems -connect gitlab.edgeless.systems:443 | openssl x509 -pubkey -noout > pubkey
$ cat pubkey | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | base64
SdZHpn0+6Wwd6Q5dgs2u60IGADQJfipSePJOkLZHjU0=

The first command downloads the certificate, parses the public key and writes it into the file pubkey. The second command generates the sha256 digest of the public key and encodes it in base64.

You can follow these steps to collect the …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by prahaladd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants