Files
plane/email/cert-gen.sh
Henit Chobisa c27e7ce03e feat: email service (#1541)
* feat: migrated email service to plane-ee

* feat: added build files

* fix: goreleaser for naming the binary

* fix: github CI

* feat: added certification generation

* fix: github CI

* feat: changed name for email service

* minor fixes to docker file and cert gen process. Added k8s manifest for testing

* removed build-email action

* added eks-cloudflare-setup instructions

* added support to gke

* modfied container ports from 25 465 587 to 10025 10465 10587

* cleanup yml files

* email docs cleanup

* added email service build action in plane cloud github action file

* fix: typo fix of email service image name

* fix: replaced base action for email service

* fix: registry name

* fix: uses in email service

* feat:modified-k8s-proxy

* updated k8s manifest

* updated k8s template

* fix: email build action

* fix image name

* fixed the spam detection mechanism

* upated k8s manifest

---------

Co-authored-by: Manish Gupta <manish@plane.so>
Co-authored-by: akshat5302 <akshatjain9782@gmail.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
Co-authored-by: Manish Gupta <59428681+mguptahub@users.noreply.github.com>
2025-02-14 17:47:09 +05:30

27 lines
959 B
Bash
Executable File

#!/bin/bash
mkdir -p keys
openssl genpkey -algorithm RSA -out keys/key.pem -pkeyopt rsa_keygen_bits:2048
openssl req -new -key keys/key.pem -out keys/csr.pem \
-subj "/C=US/ST=Delaware/O=Plane Software Inc/CN=plane.so/emailAddress=support@plane.so"
openssl x509 -req -days 365 -in keys/csr.pem -signkey keys/key.pem -out keys/cert.pem
rm keys/csr.pem
chmod 600 keys/key.pem
chmod 644 keys/cert.pem
# ------------------------------
# DKIM
# openssl genpkey -algorithm RSA -out keys/dkim_private.pem -pkeyopt rsa_keygen_bits:2048
# openssl rsa -in keys/dkim_private.pem -pubout -outform der 2>/dev/null | openssl base64 -A > keys/dkim_public.pem
# ------------------------------
# Certificate Path: /etc/letsencrypt/live/plane.email/fullchain.pem
# Private Key Path: /etc/letsencrypt/live/plane.email/privkey.pem
# openssl rsa -in /etc/letsencrypt/live/plane.email/privkey.pem -pubout -outform der 2>/dev/null | openssl base64 -A > keys/key.pub