Skip to content

Commit 55ec29f

Browse files
axilleasChris Day
andcommitted
Merge branch 'update-ssl-troubleshooting-incompatible-certs' into 'master'
Update file ssl_troubleshooting.md See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/6990 Merged-by: Achilleas Pipinellis <[email protected]> Approved-by: Achilleas Pipinellis <[email protected]> Reviewed-by: Achilleas Pipinellis <[email protected]> Co-authored-by: Chris Day <[email protected]>
2 parents c7c8243 + eb30e10 commit 55ec29f

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

doc/settings/ssl/ssl_troubleshooting.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,27 @@ Test the certificate's validity using the commands below:
125125
/opt/gitlab/embedded/bin/openssl x509 -inform DER -in /etc/gitlab/trusted-certs/example.der -text -noout
126126
```
127127

128-
Invalid certificate files produce the following output:
128+
Invalid certificate files produce the following outputs:
129+
130+
- ```shell
131+
unable to load certificate
132+
140663131141784:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:701:Expecting: TRUSTED CERTIFICATE
133+
```
134+
135+
- ```shell
136+
cannot load certificate
137+
PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
138+
```
139+
140+
In either of those cases, and if your certificates begin and end with anything other than the following:
129141

130142
```shell
131-
unable to load certificate
132-
140663131141784:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:701:Expecting: TRUSTED CERTIFICATE
143+
-----BEGIN CERTIFICATE-----
144+
-----END CERTIFICATE-----
133145
```
134146

147+
Then they are not compatible with GitLab. You should separate them into the certificate components (server, intermediate, root), and convert them to the compatible PEM format.
148+
135149
To test if `c_rehash` is not symlinking the certificate due to a missing perl interpreter:
136150

137151
```shell

0 commit comments

Comments
 (0)