SocialGouv / webseal

A static web interface to generate sealed-secrets
http://socialgouv.github.io/webseal
11 stars 3 forks source link

How to encrypt public keys? #36

Open brogier opened 7 months ago

brogier commented 7 months ago

I've tried encrypting my public key

MY_PUBLIC_KEY=-----BEGIN CERTIFICATE-----
sdfkjsdgfhdgf
-----END CERTIFICATE-----

and

MY_PUBLIC_KEY="-----BEGIN CERTIFICATE-----
sdfkjsdgfhdgf
-----END CERTIFICATE-----"

Without luck, any pointer on how to encrypt this?

revolunet commented 7 months ago

Hello, i think this version doesnt handle multiline correcltly yet. someone has to backport these changes :

brogier commented 7 months ago

Thanks for your reply, ended up base64 the output and decrypting the base64 in my application.

Worked fine 👍