Add acceptance test for PKCS#12 generation with password #327
Annotations
3 errors
Run tests:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.4.0/lib/voxpupuli/acceptance/examples.rb#L4
pkcs12 example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'almalinux8-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_114551049.wWLI9b.pp
Last 10 lines of output were:
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]/ensure: created
Info: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Scheduling refresh of X509_cert[/tmp/foo.example.com.crt]
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Triggered 'refresh' from 1 event
Info: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Scheduling refresh of X509_cert[/tmp/foo.example.com.crt]
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]/ensure: created
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Triggered 'refresh' from 2 events
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]/owner: owner changed 'root' to 'nobody'
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]/owner: owner changed 'root' to 'nobody'
Info: Class[Main]: Unscheduling all events on Class[Main]
�[mNotice: Applied catalog in 0.13 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.4.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/pkcs12_spec.rb:6
|
Run tests:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.4.0/lib/voxpupuli/acceptance/examples.rb#L8
pkcs12 example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'almalinux8-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_114553140.PgvYyr.pp
Last 10 lines of output were:
Info: Applying configuration version '1739187954'
�[mNotice: /Stage[main]/Main/Openssl::Export::Pkcs12[export.pkcs12]/Exec[Export export.pkcs12 to /tmp/export.pkcs12.p12]/returns: Enter pass phrase for /tmp/foo.example.com.key:
�[mNotice: /Stage[main]/Main/Openssl::Export::Pkcs12[export.pkcs12]/Exec[Export export.pkcs12 to /tmp/export.pkcs12.p12]/returns: User interface error
�[mNotice: /Stage[main]/Main/Openssl::Export::Pkcs12[export.pkcs12]/Exec[Export export.pkcs12 to /tmp/export.pkcs12.p12]/returns: 139668888631104:error:2807106B:UI routines:UI_process:processing error:crypto/ui/ui_lib.c:545:while reading strings
�[mNotice: /Stage[main]/Main/Openssl::Export::Pkcs12[export.pkcs12]/Exec[Export export.pkcs12 to /tmp/export.pkcs12.p12]/returns: unable to load private key
�[mNotice: /Stage[main]/Main/Openssl::Export::Pkcs12[export.pkcs12]/Exec[Export export.pkcs12 to /tmp/export.pkcs12.p12]/returns: 139668888631104:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:643:
�[mNotice: /Stage[main]/Main/Openssl::Export::Pkcs12[export.pkcs12]/Exec[Export export.pkcs12 to /tmp/export.pkcs12.p12]/returns: 139668888631104:error:0906A065:PEM routines:PEM_do_header:bad decrypt:crypto/pem/pem_lib.c:461:
Error: '["openssl", "pkcs12", "-export", "-in", "/tmp/foo.example.com.key", "-inkey", "/tmp/foo.example.com.key", "-out", "/tmp/export.pkcs12.p12", "-name", "export.pkcs12", "-nodes", "-noiter"]' returned 1 instead of one of [0]
Error: /Stage[main]/Main/Openssl::Export::Pkcs12[export.pkcs12]/Exec[Export export.pkcs12 to /tmp/export.pkcs12.p12]/returns: change from 'notrun' to ['0'] failed: '["openssl", "pkcs12", "-export", "-in", "/tmp/foo.example.com.key", "-inkey", "/tmp/foo.example.com.key", "-out", "/tmp/export.pkcs12.p12", "-name", "export.pkcs12", "-nodes", "-noiter"]' returned 1 instead of one of [0]
�[mNotice: Applied catalog in 0.06 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.4.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/pkcs12_spec.rb:6
|
Run tests
Process completed with exit code 1.
|
Loading