docusignapi - How do I verify the Subject of X509 Certificate using rails-auth? -


i trying secure 1 endpoint have docusign connect api. have checked sign message x509 certificate on docusign connect api configuration.

the client certificate common name added docusign account well.

i trying validate subject sent using rails-auth gem.

following content of acl file(acl.yml)

--- - resources:   - method: post     path: /   allow_x509_subject:     cn: "the common name" 

i have added following in config.ru file

app = rails.application acl = rails::auth::acl.from_yaml(                                  file.read("path of acl.yml"),                       matchers: { allow_x509_subject: rails::auth::x509::matcher }   )                                                                 acl_auth = rails::auth::acl::middleware.new(app, acl: acl)        x509_auth = rails::auth::x509::middleware.new(                     acl_auth,                                                        ca_file: "path_to_the_pem_file.crt",   cert_filters: { 'x-ssl-client-cert' => :pem })                                                                 run x509_auth  

i getting following exception.

*** exception rails::auth::notauthorizederror in rack application object (unauthorized request)

the common name added in docusign account same 1 have mentioned in yml file. please me in finding issue here?

i using ruby 2.2.2 rails 4.2.2, rails-auth 2.0.3


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -