Skip to content

ImportedSshPublicKey ​

ImportedSshPublicKey ​

Public key read from an OpenSSH public-key line.

ts
interface ImportedSshPublicKey {
	readonly keyType: SshKeyType;
	readonly algorithm: SshKeyAlgorithm;
	readonly publicKey: CryptoKey;
	readonly comment: string;
	readonly fingerprint: string;
}

Properties

  • readonly keyType: SshKeyType — SSH key type name.
  • readonly algorithm: SshKeyAlgorithm — Algorithm family and size.
  • readonly publicKey: CryptoKey — Extractable WebCrypto key with verify usage.
  • readonly comment: string — The line's trailing comment; empty when absent.
  • readonly fingerprint: string — SHA256: fingerprint of the public-key blob.

Released under the MIT License.