method

re_sign

ruby latest stable - Class: Gem::Security
re_sign(expired_certificate, private_key, age = ONE_YEAR, extensions = EXTENSIONS)
public

Signs expired_certificate with private_key if the keys match and the expired certificate was self-signed.