lib/saml/kit/builders/xml_signature.rb in saml-kit-0.2.4 vs lib/saml/kit/builders/xml_signature.rb in saml-kit-0.2.5
- old
+ new
@@ -22,10 +22,10 @@
attr_reader :x509_certificate
def initialize(reference_id, configuration:)
@configuration = configuration
@reference_id = reference_id
- @x509_certificate = configuration.certificates(use: :signing).sample.stripped
+ @x509_certificate = configuration.certificates(use: :signing).last.stripped
end
def signature_method
SIGNATURE_METHODS[configuration.signature_method]
end