1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/doc/resource/fake-cert
David Steele 1bd5530a59 Remove double spaces from comments and documentation.
Double spaces have fallen out of favor in recent years because they no longer contribute to readability.

We have been using single spaces and editing related paragraphs for some time, but now it seems best to update the remaining instances to avoid churn in unrelated commits and to make it clearer what spacing contributors should use.
2023-05-02 12:57:12 +03:00
..
.gitignore Use minio as local S3 emulator in documentation. 2019-05-27 07:37:20 -04:00
azure-server.crt Azure support for repository storage. 2020-07-02 16:24:34 -04:00
azure-server.key Azure support for repository storage. 2020-07-02 16:24:34 -04:00
azure.cnf Azure support for repository storage. 2020-07-02 16:24:34 -04:00
ca.crt Use minio as local S3 emulator in documentation. 2019-05-27 07:37:20 -04:00
ca.key Use minio as local S3 emulator in documentation. 2019-05-27 07:37:20 -04:00
README.md Remove double spaces from comments and documentation. 2023-05-02 12:57:12 +03:00
s3-server.crt Use minio as local S3 emulator in documentation. 2019-05-27 07:37:20 -04:00
s3-server.key Use minio as local S3 emulator in documentation. 2019-05-27 07:37:20 -04:00
s3.cnf Use minio as local S3 emulator in documentation. 2019-05-27 07:37:20 -04:00

pgBackRest Documentation Certificates

The certificates in this directory are used for documentation generation only and should not be used for actual services.

pgBackRest CA

Generate a CA that will be used to sign documentation certificates. It can be installed in the documentation containers to make certificates signed by it valid.

cd [pgbackrest-root]/doc/resource/fake-cert

openssl ecparam -genkey -name prime256v1 | openssl ec -out ca.key
openssl req -new -x509 -extensions v3_ca -key ca.key -out ca.crt -days 99999 \
    -subj "/C=US/ST=All/L=All/O=pgBackRest/CN=pgbackrest.org"

S3 Certificate

Mimic an S3 certificate for the us-east-1/us-east-2 region to generate S3 documentation.

cd [pgbackrest-root]/doc/resource/fake-cert

openssl ecparam -genkey -name prime256v1 | openssl ec -out s3-server.key
openssl req -new -sha256 -nodes -out s3-server.csr -key s3-server.key -config s3.cnf
openssl x509 -req -in s3-server.csr -CA ca.crt -CAkey ca.key -CAcreateserial \
    -out s3-server.crt -days 99999 -extensions v3_req -extfile s3.cnf

Azure Certificate

Mimic an Azure certificate for the *.blob.core.windows.net hosts to generate Azure documentation.

cd [pgbackrest-root]/doc/resource/fake-cert

openssl ecparam -genkey -name prime256v1 | openssl ec -out azure-server.key
openssl req -new -sha256 -nodes -out azure-server.csr -key azure-server.key -config azure.cnf
openssl x509 -req -in azure-server.csr -CA ca.crt -CAkey ca.key -CAcreateserial \
    -out azure-server.crt -days 99999 -extensions v3_req -extfile azure.cnf