Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not works for ssl untrusted certificates #15

Open
luismoramedina opened this issue Nov 10, 2017 · 3 comments
Open

Plugin not works for ssl untrusted certificates #15

luismoramedina opened this issue Nov 10, 2017 · 3 comments

Comments

@luismoramedina
Copy link

Hi,

I am getting this error because the ssl certificate is self-signed. Is there a way to disable certificate validation in https/ssl connections?

Error:
An error occurred, the page has not been created because:
SSL_connect returned=1 errno=0 state=error: certificate verify failed

Call:
asciidoctor-confluence --host https://myconfluence --spaceKey X --title Title --username x --password y README.adoc

Regards and thanks in advance.

@maksim77
Copy link

maksim77 commented May 3, 2018

I have exactly the same problem.

@mavanier
Copy link

There is a way to bypass SSL Verification.

I updated bin/asciidoctor-confluence file

#!/usr/bin/env ruby

require 'openssl'
require 'rubygems' if RUBY_VERSION < '1.9'
require File.join File.dirname(__FILE__), '../lib/asciidoctor/confluence/invoker'

OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
result_code = Asciidoctor::Confluence::Invoker.invoke ARGV
exit result_code

I still have a warning but it works.

/usr/lib/ruby/gems/2.4.0/gems/asciidoctor-confluence-0.0.2/bin/asciidoctor-confluence:7: warning: already initialized constant OpenSSL::SSL::VERIFY_PEER

for information, I am using the asciidoctor/docker-asciidoctor docker image.

@Sergey-Zorin
Copy link

I prepared PR #24 to solve this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants