Skip to content

Commit

Permalink
Adding docs on how to add certificates (asciidoctor#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Mar 16, 2023
1 parent ebafef0 commit 70cdb99
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/users-guide/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@
** xref:faq/troubleshooting-mps.adoc[]
** xref:faq/diagrams-in-pdf-without-text.adoc[]
** xref:faq/could-not-find-dot-executable.adoc[]
** xref:faq/custom-tls-certificates.adoc[]
7 changes: 7 additions & 0 deletions doc/users-guide/modules/ROOT/pages/faq.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,10 @@ Please consider adding a rating for the plugin in the https://plugins.jetbrains.

This plugin is based on Asciidoctor and a lot of ideas from its community.
To support Asciidoctor, please consider contributing funds via https://opencollective.com/asciidoctor[Open Collective].

=== I'm getting an error "`SSLError / certificate verify failed`"

This happens if the remote server presents a certificate which is not trusted.
Usually this happens if it uses a self-signed certificate or an unknown/private root certificate authority.

See the page about xref:faq/custom-tls-certificates.adoc[] on how to fix this.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
= Custom TLS certificates
:navtitle: Custom TLS certificates
:description: When connecting to TLS with custom TLS certificates, users need to add them to the truststore of the IDE.

{description}

== Symptom

When rendering an AsciiDoc document which for example connects to a Kroki diagram server that presents a self-signed certificate, the output contains an error similar to the following:

====
org.jruby.exceptions.StandardError: (SSLError) asciidoctor: FAILED: ...: Failed to load AsciiDoc document - certificate verify failed
====

== Cause: Untrusted certificate authority

This happens if the remote server presents a certificate which is not trusted.
Usually this happens if it uses a self-signed certificate or an unknown/private root certificate authority.

== How do I fix this?

Add the self-signed certificate or the matching root certificate authority to the IntelliJ's `cacerts` file.

Users can also add certificates via the menu menu:File[Settings... > Tools > Server Certificates]. See https://www.jetbrains.com/help/idea/settings-tools-server-certificates.html[the IDE's help] for details.

== Help, it still doesn't work!

To have the maintainers investigate the issue, open a https://github.com/asciidoctor/asciidoctor-intellij-plugin/issues[GitHub issue].

0 comments on commit 70cdb99

Please sign in to comment.