Page tree

Michael O'Brien

Skip to end of metadata
Go to start of metadata

If for no other reason than Apple requires all outgoing traffic from iOS12+ to be to an HTTPS endpoint - we will need a certificate.

Creating an SSL Certificate

Multisite Signed Certificate from Entrust

Use the $700 unlimited subdomain certificate from Entrust for production environments.

Self Signed Certificate Procedure

Use a SSC for non-production environments

follow https://devcenter.heroku.com/articles/ssl-certificate-self and https://devcenter.heroku.com/articles/ssl-endpoint#acquire-ssl-certificate

obrienbiometrics:selfsignedcert michaelobrien$ which openssl
/usr/bin/openssl
# use "password" as we will be stripping the password
obrienbiometrics:selfsignedcert michaelobrien$ openssl genrsa -des3 -out server.pass.key 2048
Generating RSA private key, 2048 bit long modulus
................................+++
.............................+++
e is 65537 (0x10001)
Enter pass phrase for server.pass.key:
Verifying - Enter pass phrase for server.pass.key:

obrienbiometrics:selfsignedcert michaelobrien$ openssl rsa -in server.pass.key -out server.key
Enter pass phrase for server.pass.key:
writing RSA key

obrienbiometrics:selfsignedcert michaelobrien$ ls
server.key	server.pass.key

obrienbiometrics:selfsignedcert michaelobrien$ openssl req -nodes -new -key server.key -out server.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) []:ca
State or Province Name (full name) []:ontario
Locality Name (eg, city) []:ottawa
Organization Name (eg, company) []:obrienlabs
Organizational Unit Name (eg, section) []:cloud
Common Name (eg, fully qualified host name) []:service.obrienlabs.cloud
Email Address []:michael@obrienlabs.cloud

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:password

Installing your certificate



LF free cert from the LF project  - https://letsencrypt.org/ - thank you Alexander


  • No labels