search for: pkey

Displaying 20 results from an estimated 51 matches for "pkey".

Did you mean: key
2019 Apr 11
1
decrypt.rb
..." > In order to generate an EC key, you must first choose a curve from the > output of this command: > > openssl ecparam -list_curves > > If you choose the curve prime256v1, generate and EC key with the command: > > openssl ecparam -name prime256v1 -genkey | openssl pkey -out > ecprivkey.pem > > Then generate a public key out of your private EC key > > openssl pkey -in ecprivkey.pem -pubout -out ecpubkey.pem > " > > -Dave I'm going on a limb and guess that there is something strange happening with ruby and openssl versions here...
2006 Jul 24
1
problem with has_many associations
...ture in the DB, like this: a.save But it won''t work, active record says that the collections (bs and ds) are not valid. I have done this before, but with only one level: like if there was no relation between B and D... I think that ActiveRecord should do this: save A -> assign the pkey to the relation of Bs save Bs -> assign the pkey to the relation of Ds but apparently it''s not doing so... Any ideas? thanks. -- Posted via http://www.ruby-forum.com/.
2019 Apr 11
2
decrypt.rb
...) = options[:input].read(33).unpack('Ca*') > [/code] > > and options[:key_digest] is filled as the private key option is passed in: > > [code] > opts.on("-k","--key KEY", "Private key to decrypt file") do |k| > ? options[:key] = OpenSSL::PKey.read(File.open(k)) > ? options[:key_digest] = get_pubid_priv(options[:key]) > end > [/code] > > It's apparently using the key from the command line to get the key > digest with the get_pubid_priv() function, and for some reason that > value is coming back as different t...
2013 Jul 06
1
[PATCH] login-common: Add support for ECDH/ECDHE cipher suites
...aster_service_ssl_settings *ssl_set); static void ssl_server_context_deinit(struct ssl_server_context **_ctx); +static void ssl_proxy_ctx_set_crypto_params(SSL_CTX *ssl_ctx, + const struct master_service_ssl_settings *set); +static int ssl_proxy_ctx_get_pkey_ec_curve_name(const struct master_service_ssl_settings *set); + static unsigned int ssl_server_context_hash(const struct ssl_server_context *ctx) { unsigned int i, g, h = 0; @@ -993,11 +997,58 @@ store = SSL_CTX_get_cert_store(ssl_ctx); load_ca(store, set->ssl_ca, load_xnames ? &xn...
2010 Aug 24
5
Reading pem file in ruby on rails
hi, i have a certificate file in pem format. i need to read the pem file. Need help on how to read the certificate in ruby on rails Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2012 Dec 18
1
Problem with srptools
Hello, I have a problem with the srptools to connect my Dom0 to the scst over IB ressources. *When i''m on the Debian kernel (without Dom0) * root@blade1:/# ibsrpdm -c id_ext=003048ffff9dd3b4,ioc_guid=003048ffff9dd3b4,dgid=fe80000000000000003048ffff9dd3b5,pkey=ffff,service_id=003048ffff9dd3b4 id_ext=003048ffff9dd3b4,ioc_guid=003048ffff9dd3b4,dgid=fe80000000000000003048ffff9dd3b6,pkey=ffff,service_id=003048ffff9dd3b4 root@blade1:/# root@blade1:/# ibstat CA ''mlx4_0'' CA type: MT26418 Number of ports: 1 Firmware version: 2.9...
2010 Mar 05
1
WEBrick 500 error only with https
...puts "=> Booting WEBrick..." OPTIONS = { :port => 3001, :ip => "x.x.x.x", :environment => (ENV[''RAILS_ENV''] || "development").dup, :server_root => File.expand_path(RAILS_ROOT + "/public/"), :pkey => OpenSSL::PKey::RSA.new( File.open(RAILS_ROOT + "/config/certs/server.key").read), :cert => OpenSSL::X509::Certificate.new( File.open(RAILS_ROOT + "/config/certs/server.crt").read), :server_type => W...
2002 Jan 31
7
x509 for hostkeys.
...============== RCS file: /home/markus/cvs/ssh/authfile.c,v retrieving revision 1.45 diff -u -r1.45 authfile.c --- authfile.c 29 Dec 2001 21:56:01 -0000 1.45 +++ authfile.c 31 Jan 2002 10:50:53 -0000 @@ -460,6 +460,24 @@ error("PEM_read_PrivateKey: mismatch or " "unknown EVP_PKEY save_type %d", pk->save_type); } + if (prv != NULL) { + /* try to get a certificate if we have the private key */ + prv->x509 = PEM_read_X509(fp, NULL, NULL, (char *)passphrase); + if (prv->x509 != NULL) { + debug("PEM_read_X509"); +#ifdef DEBUG_X509 + X509_print_fp...
2019 Apr 11
0
decrypt.rb
...ovecot.org/Plugins/MailCrypt " In order to generate an EC key, you must first choose a curve from the output of this command: > openssl ecparam -list_curves If you choose the curve prime256v1, generate and EC key with the command: > openssl ecparam -name prime256v1 -genkey | openssl pkey -out ecprivkey.pem Then generate a public key out of your private EC key > openssl pkey -in ecprivkey.pem -pubout -out ecpubkey.pem " -Dave
2007 Dec 07
0
Documentation for OpenSSL
I need to figue out how to calculate the modulus, exponent and base - the parts that make up a key for encryption and I was just wondering if someone knows where I can find good documention for OpenSSL::PKey::RSA. I know about http://www.ruby-doc.org/stdlib/ but there seems to be a lot missing from this documention. For example, for RSA I know about has two data members n, e for modulus and exponent but I need to find the base. But n and e are not listed in the documention. In fact, I can''t ev...
2007 Mar 29
0
using certificates with ActiveResource
...h of overriding Net::HTTP#cert and Net::HTTP#key to return my cert and key: (environment.rb) require ''net/https'' class Net::HTTP def cert OpenSSL::X509::Certificate.new(File.read(RAILS_ROOT + "/config/certs/client_signed.pem")) end def key OpenSSL::PKey::RSA.new(File.read(RAILS_ROOT + "/config/certs/client.key")) end end That still wasn''t working... I think I was getting an SSL error. So, I took a detour off to write a standalone ruby script to do the connection using the cert and key. After much trial and error, I finall...
2014 Dec 14
2
[PATCH] Early request for comments: U2F authentication
...tal("EVP_VerifyInit() failed: %s (reason: %s)", > + errorbuf, ERR_reason_error_string(err)); You should use "EVP_sha256()" instead of "EVP_ecdsa()" here (we have a ECDSA signature on the SHA256 hash) > + if ((err = EVP_VerifyFinal(&mdctx, walk, restlen, pkey)) == -1) { > + ERR_error_string(ERR_get_error(), errorbuf); > + error("Verifying the U2F registration signature failed: %s (reason: %s)", > + errorbuf, ERR_reason_error_string(err)); > + goto out; > + } You test EVP_VerifyFinal() only against "-1". This cat...
2011 May 02
2
INSERT OR UPDATE
I'm trying to insert rows of a data.frame into a database table, or update where the key fields of a record already exist in the table. I've come up with a possible solution below, but would like to hear if anyone has a better solution. # The problem demonstrated: # Create a data.frame with test values library(RODBC) tbl <- data.frame( key1 = rep(1:3, each = 2), key2 =
2009 Apr 24
4
Long string in crypting
...solution to crypt a string that I found using OpenSSL. But the crypted string becomes very long, too long for a varchar 255 to hold it. What can I do to make it shorter? Or should I just use text as column in the mysql db? public_key_file = ''lib/public.pem'' public_key = OpenSSL::PKey::RSA.new(File.read(public_key_file)) @encrypted_string = Base64.encode64(public_key.public_encrypt(string)) -- Posted via http://www.ruby-forum.com/.
2016 Nov 02
0
v2.2.26.0 released
...;1<tab>symmetric algo name<tab>salt<tab>hash algo<tab>rounds<tab>E(RSA = i2d_PrivateKey, EC=Private Point)<tab>key id **/ -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) #define EVP_PKEY_get0_EC_KEY(x) x->pkey.ec #define EVP_PKEY_get0_RSA(x) x->pkey.rsa #define OBJ_length(o) ((o)->length) @@ -90,7 +90,7 @@ struct dcrypt_context_symmetric { struct dcrypt_context_hmac { pool_t pool; const EVP_MD *md; -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if OPENSSL_VERSION_N...
2020 Nov 15
1
no shared cipher openssl
...ble compression. # no_ticket - Disable SSL session tickets. #ssl_options = =========================== # openssl x509 -dates -in mydomain.com.crt notBefore=Nov 11 16:31:35 2020 GMT notAfter=Nov 11 16:31:35 2022 GMT -----BEGIN CERTIFICATE----- : =========================== # openssl pkey -in mydomain.com.key -----BEGIN PRIVATE KEY----- : Thanks for taking a look. Any ideas on what I should do next to debug? Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20201115/57636d31/att...
2019 Apr 09
3
decrypt.rb
>> I've tried specifying an output file as well, per the script's command line options, >> but the output file is 0 bytes.? Does anyone have any suggestions?? I *think* I'm >> using it the way it's intended to be used, but maybe I'm not?! >> -Dave > > Hi! > Maybe the key you tried was not used to encrypt the file? > Aki Aki,
2019 Apr 10
2
decrypt.rb
On 4/10/2019 1:32 AM, Aki Tuomi wrote: > On 9.4.2019 18.15, Dave wrote: >>>> I've tried specifying an output file as well, per the script's >> command line options, >>>> but the output file is 0 bytes.? Does anyone have any suggestions? >> I *think* I'm >>>> using it the way it's intended to be used, but maybe I'm not?!
2008 May 07
3
[Bug 15861] New: Account Request For Nouveau DDX
http://bugs.freedesktop.org/show_bug.cgi?id=15861 Summary: Account Request For Nouveau DDX Product: xorg Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium Component: Driver/nouveau AssignedTo: nouveau at lists.freedesktop.org ReportedBy:
2018 Dec 20
0
4.20-rc6: WARNING: CPU: 30 PID: 197360 at net/core/flow_dissector.c:764 __skb_flow_dissect
...table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nfnetlink ip6table_filter ip6_tables iptable_filter dm_service_time rpcrdma sunrpc rdma_ucm rdma_cm configfs iw_cm ib_cm mlx4_ib ib_uverbs ib_core pkey ghash_s390 prng aes_s390 des_s390 des_generic sha512_s390 sha1_s390 zcrypt_cex4 zcrypt rng_core eadm_sch sch_fq_codel ip_tables x_tables mlx4_en mlx4_core sha256_s390 sha_common dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua dm_mirror dm_region_hash dm_log dm_mod autofs4 [85109.572072] CPU: 30...